![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.blahaj.zone/pictrs/image/fwrQkf9edg.png)
What the fuck why is this so funny
What the fuck why is this so funny
So what it comes down to is that int()
, float()
, and input()
(as well as print()
) are functions that you are calling. In the case of int()
and float()
, they return (simply put, when you make a function call it “becomes” the return value) an int
or float
type object based on the argument (the value between the parentheses) that you passed in. In the case of print()
, it causes the program to print out the provided argument.
input()
is a little more complicated. It prints out the provided argument (in your case: Who are you?
) and then puts the program on pause while it waits for the user to input some text and press enter. Once they have done so, the input
function returns the text the user has entered. So as mentioned before, the code input('Who are you? ')
“becomes” the text the user input, which then gets assigned to the variable nam
.
I think where you may be getting confused is what exactly defines “text”. The only things that python considers text (referred to as a string
) are characters surrounded by “” or ‘’. In your example, input('Who are you? ')
is not a string, but code to be executed (although the argument being passed to input
, 'Who are you? '
, is a string). As an experiment, try surrounding that code with quotation marks (name = "input('Who are you? ')"
) and see what happens!
I caught this one at Shedd Aquarium!
Hopefully it makes the transition as well as Risk of Rain did!
Yeah, that’s what frustrates me. There are legitimate concerns around Biden as president. However, every single one of those concerns also applies to Trump, as well as a million more much worse concerns
“people who want Trump to be president”
That is absolutely fascinating, and makes me want to learn more about poetry
I think I’ll wait for the verdict and sentencing to see whether he’s above the law or not
Oh yeah, I washed my hands well after that
I just deadname buildings. Anyone been up the Sears Tower lately?
Same here. Everything, sorted by scaled, and I block communities that annoy me. Or entire instances, but so far that’s just been hexbear
Yeah, the battery replacement wasn’t too hard, though. Just some light soldering and sugru to seal it back up
Mine was down to lasting about 12 hours lol
That looks nice, but dear god is is expensive
Me too! I had to replace the battery in my Pebble Time Steel a couple years ago, but it’s still going strong! Sometimes I think about getting something new, but everything new is worse!
Oh man, I loved the original so much
Man, same. I bought it, then learned it wouldn’t even have career mode and immediately refunded it.
HUDs in cars is already a thing! A lot of newer vehicles have it, at least in the higher trims