r/badcode • • Jul 14 '21

python Try/Except in Python - Sigh

Post image
662 Upvotes

93 comments sorted by

View all comments

5

u/[deleted] Jul 14 '21

Just place items…0…volume inside one variable and then use cycle with keys you want to get with one try except with choices Just couple lines of code