The Surprising Comma

Trailing commas are pretty commonly used in lists and other collections in Python. But can we use them in function arguments as well? Let’s try to find out.

The following codes are for Python versions less than Python 3.6. We will be using Python 3.5.2.

Get hands-on with 1200+ tech skills courses.