Project Level 1: Beginner
This project is designed for beginner learners who are still learning and practicing Python fundamentals.
Project Description
Create a program that starts with a predefined list of your favorite movies. For example:
favorite_movies = ["Inception", "The Matrix", "Interstellar", "The Dark Knight"]
Place the above list in your .py script and then add some code that does the following:
Adds a new movie to the list (e.g., “Godfather”).
Removes a specific movie from the list (e.g., “The Matrix”).
Prints out the total number of movies in the list.
Prints out the movies in alphabetical order.
Here is how the output would look like after running the program:
Learning Benefits
List Operations: Covers essential list methods like
append()
,remove()
,len()
, andsort()
.Real-Life Relevance: Organizing favorite items is a relatable and fun concept.
Encourages Creativity: Students can modify the movie list with their own favorites.
Looping Practice: Students practice iterating through lists and displaying results.
Prerequisites
Required Libraries: No libraries are needed for this project.
Required Files: No files are needed for this project.
IDE: You can use any IDE on your computer to code the project.
Danger Zone
Once you code the project, compare it with our solution given in the button below.