A Brief Introduction to Lists
my_first_list = [3, 5, 6]
# A list of items are enclosed by square brackets
# Each item in a list is called an element
# Every element is separated by commas
# And that's right, a variable can store a list just like it can for
# strings, numbers or booleans
another_list = [99, 100, 34, 22, 343]
# List can be of other types
list_of_strings = ['hey', 'there']
list_floats = [3.0, 2.2]
list_of_mixed_values = [12, 23.0, 'still works']Last updated