Home About Me Scratch Web Development Google 20 Python Assignments Java Assignments

My Scratch Stuff

Assignments

Pair Programming

In the pair programming portion, Randy and I created a program that would make up 10 random numbers in between 1 and 50. After the code made up the numbers and put them into the list, the program would then add all of the numbers up, for a total sum.

Click here for the project link.

Even or Odd

For this project, I made a program that would ask the user for any number, and when they were done entering numbers the program would count how many were even and how many were odd. The original code would take in any number and then determine if that number was even or odd on the spot. After editting it for the second part of the first project, it counts how many.

Click here for the project link.

Questions

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