Scratch Lab #9

Name: Daniel Harris

Period: 7

Assignment: Lab #9

Lab Overview

This lab focused on using lists to store many variables in one variable. Like when you go grocery shopping you have a list... you know, a list. Click HERE for the full description.

My Solution 1 (Problem 1)

My first challenge was to create a program that added number inputs to a list and told if they were even or odd. To do this I used a mod block to find the remainder of each number after being divided by two, and if the remainder was one, I said the number is odd.

Problem 1 Link

Questions

  1. What is the length of an “empty” list?
      Zero.
  2. Why are lists more powerful than variables?
      They can store multiple variables.
  3. Can a list contain different data types? For example, could it store both numbers and words?
      Yes.