You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 34m 36s logged

Handling Errors for Input

Today I created options if the user typed in wrong data, they could change it. I also created options if the user typed in something that was not supposed to be typed, an error message would appear.

Program running

  • Now the program runs forever until you type exit
  • The program always clears the terminal when a new question comes and prints “NASA-Missions” at the top
  • I made the program run forever by using while loop

Error Handling

  • When users types in an option not in the options, the program shows an error message
  • If the user types in data, the program asks the user for confirmation. If the user says no, the user can change the data.

Learned

  • Learned about While loops
  • learned about how continue and break work
  • also learned the .lower() method

Took a very long time, and used a lot of if/elif/else statement. You can see in the picture just a glimpse of the hundreds of if/else.

0
1

Comments 0

No comments yet. Be the first!