Language Delimiters
, — comma
Separates items, arguments or parameters. In expression lists a comma constructs a tuple even without parentheses, and a trailing comma is needed for a one-item tuple.
Formal Syntax & Structure
python syntaxpython
,Return Value
Not applicable
Grammar token; the enclosing construct determines any result.
Working Example
Example Snippetpython
print(type((7,)).__name__, type((7)).__name__)