Lab #9 Write Up

Name: Adam Coate

Period: 7

Assignment: Lab #9

Lab Overview

Problem #1: In this problem I had to make A list of numbers and have the sprite tell you if the numbers are even or odd. To tell if the numbers are even or odd I used he 'mod' block. To see if it is even I have the code say (Number) mod 2. To tell if it is odd I have the code say (number) mod 1. If the number of even numbers is greater then odd numbers the sprite will change costume. To do this I simpily made 2 variables and when the 'even' variable is greater than the 'odd' variable then the sprite will change costume.

Problem #1

Questions

Question #1: Empty lists have a length of 0.

Question #2: Lists are more powerful than variables because they can store more data.

Question #3: Lists can store multiple types of data, such as numbers and words.