The trailing comma
suggest changeLike lists and tuples, you can include a trailing comma in your dictionary.
role = {"By day": "A typical programmer",
"By night": "Still a typical programmer",}
PEP 8 says not to put a space between a trailing comma and the closing delimiter.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents