Question: Use Python to write a program that meets the following requirements. Create a list of 8 items. Prints the list of 8 items as a
Use Python to write a program that meets the following requirements.
- Create a list of 8 items.
- Prints the list of 8 items as a column and without brackets
- Prints a paragraph of text that access the list to print all of the elements of the list.
- Access two elements of the list to modify them.
- Uses the following:
- insert() method to add one element to the middle of the list.
- append() method to add one element to the end of the list.
- del() method to remove the zeroth element of the array.
- Prints a sentence as it uses the pop() method.
- Removes an item of the list by name.
- Sorts the list in ascending order.
- Prints the list descending order (but the actual ascending order of the list is intact).
- And includes a commented-out line that intends to access an element outside of the index scope.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
