Day 8 : Programming for Kids: List

Anuj Agarwal
2 min readFeb 23, 2023

--

Learning Material:

  1. Video: Watch a short video on lists in programming. Here is an example video: https://www.youtube.com/watch?v=ohCDWZgNIU0
  2. 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
  3. 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:

  1. Write a program that prompts the user for 5 numbers, stores them in a list, and then prints out the sum of the numbers.
  2. Write a program that prompts the user for a list of numbers, and then prints out the maximum and minimum numbers in the list.
  3. Write a program that prompts the user for a list of words, and then prints out the longest and shortest words in the list.
  4. 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.

--

--

Anuj Agarwal
Anuj Agarwal

Written by Anuj Agarwal

Director - Technology at Natwest. Product Manager and Technologist who loves to solve problems with innovative technological solutions.