Empty Tuple in Python
Level 114 keystrokes
This creates and prints an empty tuple using the tuple() constructor.
Python code
# tuple() called with no arguments creates an empty tuple# An empty tuple is shown as (), so () is printed1print(tuple())Output
()
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Python code and how often they appear.
(× 2)× 2