For the first section of a coding series I have started, Your Age in Seconds. To show what you learned through the videos I was assigned a little project. For this project I had to use statements like: int, integers, variables, if, print and, else. The project was to:

  1. 1.) Create a variable that holds a “magic number” between 0 and 10;
  2. 2.) Tell the user to pick a number between 0 and 10;
  3. 3.) If the user picks the magic number, tell them they’ve won; and
  4. 4.) If the user does not pick the right number, tell them to run the program again.

Leave a Comment

Your email address will not be published. Required fields are marked *