Quickie Python coding tip #1123
Idea: Use dictionary syntax as a comment So here's a quickie tip that I came up with: Use the Python dictionary assignment in a comment to describe which option number to use In this example, one of the nested sub-lists of a main list is to be replaced See the below code for sublist_replacement The pick number is described by a comment containing a dictionary assignment [Born to be alive side music ( here )] One place where replacement will occur is in the generated generic help menus of the below form: MORE TO EXPLORE Book = The Python Tricks Digital Toolkit Medium = Python Decorators, Generators, etc.