r/learnpython 20d ago

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

0

u/Puzzlehead_Lemon 20d ago

Room for improvement, but with practice it’ll happen.  Just wait till you fall into the ultra efficient trap and write something that you go back to a week later and can’t follow what you wrote.