Question: This is my assignment in Python, need help on part B Exercise. 1 Lists, slicing and for statements. Given the list named pizzas In (1)t

This is my assignment in Python, need help on part B
This is my assignment in Python, need help on part B Exercise.

Exercise. 1 Lists, slicing and for statements. Given the list named pizzas In (1)t plzas = ''cheese', pepperoni', "margherito', 'havailan', 'Italian sausage', "green peppers and oniona'I a) Using for statements and the method of lists called append, append in the Ist lengths the length of each element in the pizzas Ist, and print the list langths. In{20}:lengthe=(6,9,10,8,15,24]forxinlengthspizans.append(x)print(pitzan) L'cheede:, "pepperoni', 'nargherita", "hawaidan', 'italian sausage', 'green peppera and oniona', 6, 9 , 10, 8,15,241 In[1= b) Using for statements, the string method called eapitailze and the method of lists called append, append in the lst pizzal cap the capitalized version of each element in the pizzas list, and print the list pirzas_cap. In{22}1]In1]1

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!