I have the following list:
my_list = ["shanya", 1.2, 1, False, "test", 2, 3.3, True, "3", "4.0"]
But how do I access multiple elements in this list?
I know how to access one specific element (e.g., my_list[1] gives me [1.2]) and a range (e.g., my_list[1:3] gives me [1.2, 1]) but how do I get the first and third to last element?
["shanya", 1, False, "test", 2, 3.3, True, "3", "4.0"]
1will give you the second item. If you want the first item you need to use0.