Making the guessing game more exciting!

Continuing on from our previous video, perhaps we should not have given users infinite chances to get their guess correct?

Summary:

  • We have added multiple conditions to the while loop.
  • Beware of logical/semantic errors!
  • Use variables as constants to make it easier to maintain your code and future-proof.
This is an archived version of the course and is no longer updated. Please find the latest version of the course on the main webpage.