Question: Create a list called my _ list with the following items: 2 , 4 , 6 , 8 , 1 0 . Print the third

Create a list called my_list with the following items: 2,4,6,8,10.
Print the third item in my_list.
Add the number 12 to the end of my_list using the append() method.
Remove the first item in my_list using the remove() method.
Create a new list called second_list with the following items: 1,3,5,7,9.
Concatenate second_list onto the end of my_list.
Print a slice of my_list containing the second through fifth items.
Change the value of the sixth item in my_list to 18.
Check if the value 6 is in my_list.
Print the length of my_list.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!