Question: 1. Assign to a variable called theList the list that contains [Volvo,BMW, Ford]; 2. Add Mazda to the list. Print the list. 3.
1. Assign to a variable called "theList" the list that contains ["Volvo","BMW", "Ford"]; 2. Add " Mazda " to the list. Print the list. 3. Remove " BMW " from the list. Print the list. 4. Replace the second element of the list with the value Opel 5. Ask the user to input a new Car type. Add this new element to the list. Print the 6. Using while, print all elements.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
