Day 8 : Programming for Kids: List
2 min readFeb 23, 2023
Learning Material:
- Video: Watch a short video on lists in programming. Here is an example video: https://www.youtube.com/watch?v=ohCDWZgNIU0
- Article: Read an article that explains how to use lists in Python. Here is an example article: https://www.w3schools.com/python/python_lists.asp
- Interactive Tutorial: Complete an interactive tutorial that teaches you how to use lists in Python. Here is an example tutorial: https://www.learnpython.org/en/Lists
Exercise:
- Write a program that prompts the user for 5 numbers, stores them in a list, and then prints out the sum of the numbers.
- Write a program that prompts the user for a list of numbers, and then prints out the maximum and minimum numbers in the list.
- Write a program that prompts the user for a list of words, and then prints out the longest and shortest words in the list.
- Write a program that prompts the user for a list of numbers, and then prints out a new list that contains only the even numbers from the original list.
These exercises are designed to help the student practice using lists in Python, and reinforce the concepts learned in the learning material. As with the previous days, the exercises should be challenging but not overwhelming, and provide the student with the opportunity to practice writing code on their own.