Lists in Python can hold many values called elements. You create them with square brackets and commas:
my_list = [1, 2, 3, 99]
Create a list called my_list here, make it have five numbers in it, some smaller than 10, and some larger than 10:
Lists in Python can hold many values called elements. You create them with square brackets and commas:
my_list = [1, 2, 3, 99]
Create a list called my_list here, make it have five numbers in it, some smaller than 10, and some larger than 10: