Python List Exercises
Exercise 1: Create a List and Print It
Question
Create a list of fruits and print it.
Solution
Exercise 2: Access List Items
Question
Print the first and last item of a list.
Solution
Exercise 3: Change List Item
Question
Change "banana" to "mango" in the list.
Solution
Exercise 4: Add Item to List
Question
Add "grape" to the list.
Solution
Exercise 5: Remove Item from List
Question
Remove "apple" from the list.
Solution
Exercise 6: Loop Through List
Question
Print all items in the list using a loop.
Solution
Exercise 7: Find Length of List
Question
Find how many items are in a list.
Solution
Exercise 8: Check Item Exists
Question
Check if "blue" is in the list.
Solution
Exercise 9: Sort a List
Question
Sort a list of numbers.
Solution
Exercise 10: Copy a List
Question
Create a copy of a list and change the copy.
Solution
Exercise 11: Join Two Lists
Question
Join two lists into one.
Solution
Exercise 12: List Comprehension
Question
Create a new list with double values.
Solution
Exercise 13: Remove Even Numbers
Question
Remove even numbers from the list.
Solution
Exercise 14: Count an Item
Question
Count how many times 2 appears.
Solution
Exercise 15: Reverse a List
Question
Reverse the list.
Solution
✅ Summary
✔ Lists store many values
✔ Lists can be changed
✔ Use methods to work easily
✔ Practice makes you better
📘 Perfect for Beginner eBook
This exercise chapter is ideal for:
-
Python beginner books
-
School & college students
-
Self-learners
If you want next, I can write:
-
Tuple Exercises
-
Set Exercises
-
Dictionary Exercises
-
Loop Exercises
-
MCQs with answers
Just tell me 😊
