222.jpg -
: Create a list called my_list with the integer -100 and the string "lists are fun" . Solution : my_list = [-100, "lists are fun"] Use code with caution. Copied to clipboard 3. Initialize an Empty List
: Lists can hold any combination of data types (integers, floats, strings, etc.). 222.JPG
: Variable names like my_nums or class_grades should be descriptive to make the code readable. : Create a list called my_list with the
: Create a list called my_nums containing the integers 5, 10, and 20. Solution : my_nums = [5, 10, 20] Use code with caution. Copied to clipboard 2. Create a Mixed-Type List 222.JPG


