Empty List in Python
Level 113 keystrokes
This creates and prints an empty list using the list() constructor.
Python code
# list() called with no arguments creates a new, empty list# An empty list is shown as [], so [] is printed1print(list())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