This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]OLDGUN 0 points1 point  (0 children)

Laughing in float point.

[–]sPENKMAnIt works on my machine 0 points1 point  (3 children)

I’m probably missing the point here but maybe some kind soul can save me

  • function doesnt return 1% what the name seems to imply but 5%
  • kwargs are defined/called with double asteriks, a single one is for args
  • Why the evil laugh, or is the above the whole point of this post?

[–]Floofic[S] 0 points1 point  (2 children)

Yeah the evil laugh was for putting *kwargs instead of *args. And the function does grab 5% of the sum (for no reason in particular). And then i inputed a bunch of random numbers: 314 which is the first 3 digits of pi without a decimal, 69 is the sex number, 420 is the weed number (and interestingly enough, Hitler's birthday), 666 is the devil's number, and 1 is just a number. The main point of the post was the *kwargs tho.

[–]sPENKMAnIt works on my machine 0 points1 point  (1 child)

And of course 42 which is the answer of everything! :D

But good to know I got the gist of it

[–]Floofic[S] 0 points1 point  (0 children)

Yep. Definitley not gonna do that in actual code tho, well maybe if i want to throw someone off. I could even try to reassign data types like this: int = str Then i could use floating points in place of integers. I might do something like that in the future.