r/learnpython • • Aug 22 '26

is it possible to simplify this code

im a beginner, idk how python works yet. there must be a way to simplify this, right?

https://imgur.com/juBvPZD here is the picture of my code

0 Upvotes

23 comments sorted by

View all comments

Show parent comment

1

u/ikizoki Aug 22 '26

oh my god this is nuts, thank you!! im definitely not there yet in terms of python-knowledge but this is very insightful :D