Name: Flavia Rodrigues
Period: 7
Assignment: Lab #9
On this lab we focused on lists and how to make them. On the pair programming we first leanred how to make the lists. We had to put random numbers in the list then find the sum.
On this soultion I had to make another list, i did this by creating a block. I had to ask which numbers would get put on the list. Then, I had to find out if the individual numbers were even or odd. I did this by creating some variables like odd, even and item. Then we had to count how many evens their were and how many odd their were. I could do these two things simultaneously. Lastly we had to see if there were more odd or even numbers. Then the sprite would change costumes depending on that.
1.What is the length of an “empty” list?
0, because an empty list is empty.
2. Why are lists more powerful than variables?
Lists are more powerful because they can have multiple numbers/words in them. They also have some cool demands that variables don't have.
3. Can a list contain different data types? For example, could it store both numbers and words?
Yes, the list can contain anything you put into it.