Friday 9 July 2021

Too Many If-Elif Conditions in Python? Use Dictionaries Instead by Tommaso De Ponti via @@BttrProgramming

An unconventional way Python dictionaries can clean up your code.

I'm not convinced but give it a go - maybe you will be comfortable using this more than I was.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.