subject

4-10. slices: using one of the programs you wrote in this chapter, add several lines to the end of the program that do the following: • print the message, the first three items in the list are: . then use a slice to print the first three items from that program’s list. • print the message, three items from the middle of the list are: . use a slice to print three items from the middle of the list. • print the message, the last three items in the list are: . use a slice to print the last three items in the list. 4-11. my pizzas, your pizzas: start with your program from exercise 4-1 (page 60). make a copy of the list of pizzas, and call it friend_pizzas. then, do the following: • add a new pizza to the original list. • add a different pizza to the list friend_pizzas. • prove that you have two separate lists. print the message, my favorite pizzas are: , and then use a for loop to print the first list. print the message, my friend’s favorite pizzas are: , and then use a for loop to print the second list. make sure each new pizza is stored in the appropriate list. 4-12. more loops: all versions of foods. py in this section have avoided using for loops when printing to save space. choose a version of foods. py, and write two for loops to print each list of foods.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
You know the right answer?
4-10. slices: using one of the programs you wrote in this chapter, add several lines to the end of...
Questions
question
Mathematics, 29.07.2019 19:20
Questions on the website: 13722360