0% found this document useful (0 votes)
6 views1 page

Intro To Python - HW - 9

coding

Uploaded by

gogo.america2015
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Intro To Python - HW - 9

coding

Uploaded by

gogo.america2015
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

7/31/24

Python Beginners I
Tuesday& Thursday 6:30 to 7:30 PM
Hello Parents and Students,

Today, we explored the concept of lists in Python and learned how they help us store and organize
multiple pieces of information in one place.

we learned the following:


 Creating a list – how to make a list to store multiple pieces of information.
 Types of lists – number lists, string lists, mixed lists, and boolean lists.
 Adding items – using different ways to add single or multiple items to a list.
 Removing items – deleting unwanted items from a list.
 Replacing items – changing an existing item in a list to a new value.
 Slicing a list – selecting and working with only a portion of a list.
 Printing items – displaying the entire list, printing items horizontally, and printing items
vertically (one per line).
 Finding information in a list – using built-in functions to find:
o Maximum value
o Minimum value
o Length (number of items)
o Sum of items
o Average of items
Finally, we created a Shopping Cart Project where we asked the user how many items they wanted to
add, collected their items in a list, and displayed the final shopping list.

Homework

1. Create a program to build a “Favorite Movies” list:

o Ask the user how many movies to add.


o Print the list horizontally and vertically.
o Remove one movie and replace one movie with another.
o Print the updated list.

As always, you can send any questions to [email protected] with "Mr. George” in
the subject line.

Regards,
Mr. George

You might also like