The trailing comma

suggest change

Like 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents