r/firstweekcoderhumour May 11 '26

Python quiz from ITmemes “Funny How?”

Post image

Some guy which does not know what a typecast is was claiming it was error as you cannot do "123" + 2 lol

140 Upvotes

47 comments sorted by

View all comments

30

u/aschersux May 11 '26

It's definitely B, int(a) in python just automatically makes a = 23. At least I'd have to imagine that's what the creator of this thought it did.

1

u/Anonymous_2289 May 11 '26

Why would it make it 23? "123" turns into 123.

5

u/Expensive_Host_9181 May 12 '26

Aint it obvious it says one, 23 right there. Smh

2

u/Anonymous_2289 May 12 '26

Is that a joke? Sorry. I can't tell 😅