Question
Use the table above to answer the questions below : (i) Using Python program, store the names of the Costume from the table above
Use the table above to answer the questions below :\ \ (i) Using Python program, store the names of the Costume from the table above in a list called Costumes. (2 points)\ \ (ii) Use the insert( ) to add one new Costume to the beginning of the list and one to the end of the list. (2 points)\ \ (iii) Use a for loop to print only the Costumes, that the prices are less than $40 from the original list. (2 points)\ \ (iv) Use reverse( ) to change the order of the Costume list. Print the list to show it's order has changed. (2 points)\ \ (v) Print the message " The last three items in the list are " , use a slice to print the last three items in the list. (2 points)\
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started