Page 1 of 1

Python: Making a List

Posted: Tue Apr 07, 2026 5:05 pm
by Jason

Code: Select all

# Lists are ordered, changeable, and can contain duplicates.

a_few_flower_types = ["dandelion", "sunflower", "rose"]

a_silly_list_with_3_data_types = ["camel", 1, 5.7]

# Below is another way to make a list.

a_few_flower_types = list(("dandelion", "sunflower", "rose"))