MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ok1itb/tryexcept_in_python_sigh/h55crle/?context=3
r/badcode • u/lonaExe • Jul 14 '21
93 comments sorted by
View all comments
Show parent comment
6
Yeah, IMO mainly because there's so much repetition. So it'd be better to use a function or defaultdict or something, instead of having to repeat yourself every time.
Otherwise it looks acceptable to me.
View all comments
Show parent comment
6
u/bphase Jul 14 '21
Yeah, IMO mainly because there's so much repetition. So it'd be better to use a function or defaultdict or something, instead of having to repeat yourself every time.
Otherwise it looks acceptable to me.