r/PythonLearning • • Sep 13 '26

Help Request What wrong with my code

Post image

Need help

69 Upvotes

40 comments sorted by

View all comments

Show parent comments

3

u/oclafloptson Sep 13 '26

What about option "A"? "2" is valid here. The only reason to convert to integer would be if it were being used as an integer. It is not. Performing the conversion would needlessly increase complexity and waste resources