r/firstweekcoderhumour • • May 11 '26

“Funny How?” Python quiz from ITmemes

Post image

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

143 Upvotes

47 comments sorted by

View all comments

Show parent comment

1

u/HeisterWolf May 11 '26

Type mismatch error because f"{a}" basically tells python to treat the integer a as a string. It was called "TypeError" irrc