Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the list named new_pizzas []: 'pepperoni', 'margherita', 'hawaiian', 'italian sausage', 'gree a) Use a list method that lets you add a new flavour to

image text in transcribed

Given the list named new_pizzas []: 'pepperoni', 'margherita', 'hawaiian', 'italian sausage', 'gree a) Use a list method that lets you add a new flavour to add 'spinach and feta' to the end of the list. [ ] : #rii []: b) Grab the element with value 'italian sausage' from the list new_pizzas, assign it to a variable named my_pizza. c) From the variable my_pizza grab the slice that corresponds to 'italian' and the slice that corresponds to 'sausage' (be careful, don't include spaces), assign them to variables named word_1 and word_2 respectively, and print them. [ ]: [ ]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting The Easy Way

Authors: Peter Eisen

2nd Edition

0812041879, 978-0812041873

Students also viewed these Databases questions