r/PythonLearning • • 10h ago

Help Request How can I improve?

Post image
2 Upvotes

3 comments sorted by

View all comments

2

u/noragerts 4h ago

For more than three cases I would recommend using switch statements. I think in Python it's called match-case as I recall. Personally I find it easier to read when that happens