EveryMuffinIsNowEncrypted

joined 2 years ago
[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 3 points 1 year ago* (last edited 1 year ago) (1 children)

...I am confuzzled and slightly afraid. :|

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 1 points 1 year ago (2 children)

So input(x) prints out x and then puts itself into a waiting mode of sorts, waiting for the user to supply a value, and then once it has that value it outputs that particular value.

Am I right?

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 1 points 1 year ago (2 children)

I think I misworded my thoughts, to be honest.

As I understand it:

int(2.1) would print out 2 since it just converts it to an integer by truncating it.

float(2) would print out 2.0 since it just converts it to a floating-point value by appending a .0 to the end.

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 3 points 1 year ago (4 children)

Oh! I get it now!

It's because while int() and float() are instantaneous, while input() uses the fourth dimension, time, and thus depends on a future input by the user. (May not make sense the way I'm putting it, but it makes sense to me. Lol.) In other words, while float() and int() have all the data they need to produce an output (i.e. what's in the parentheses), input() "outputs" the text in the parentheses, then puts itself into a pending state to await further user input, then outputs that second user input.

Am that about the right of it? :)

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 1 points 1 year ago* (last edited 1 year ago) (2 children)

user_number = int(input(‘what’s the number?’))

But then what's input('what's the number?') result in? I understand int() and float(), but I can't wrap my head around what exactly input does to the text within the succeeding parentheses.

 


Edit: I get it now! Another user helped me understand it, and I get it now! Thank you for your help too! You're awesome!

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 10 points 1 year ago* (last edited 1 year ago)

Gross.

Welp, I sure hope either we stay on the winning side of the cat-and-mouse game or a lot of creators jump ship to other emerging platforms (not that there are many), because it'd be a damn shame to have to stop watching some of the creators I enjoy watching. Many of them are damned talented folks IMHO.

I've heard good things about Nebula, but sadly a lot of the channels I watch are not quite on there yet. Also, I'm broke, so there's that. Lol.

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 10 points 1 year ago (2 children)

Wait, they have? I wonder how/if that would affect the functionality of apps like Newpipe/Freetube.

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 33 points 1 year ago* (last edited 1 year ago) (2 children)

I'm not even gonna watch the video with such a clickbaity title as that... Yikes.

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 2 points 1 year ago (1 children)

So only I can eat them. Mwahahaha!

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 54 points 1 year ago (3 children)

Puritanism bullshit.

[–] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 1 points 1 year ago (1 children)

Sorry for my ignorance, but could you ELI5 that for me?

I don't know what an arborescence is.

view more: ‹ prev next ›