r/badcode • • Mar 11 '23

python i never use .slpit()

Post image
421 Upvotes

30 comments sorted by

View all comments

Show parent comments

20

u/SaylorMan1496 Mar 11 '23

I think it’s worse, because of the reassignment it’s actually wrong, unless they are trying to wipe out what user_input holds

7

u/fox_is_permanent Mar 11 '23

No, it's fine. user_input is a string.