This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create an empty list using square brackets. | |
numbers = [] | |
print(numbers) # Output: [] | |
# Create an empty list using list(). | |
numbers = list() | |
print(numbers) # Output: [] | |
# Create a list of numbers. | |
numbers = [1, 2, 3] |