Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Discover comprehensive solutions to your questions from a wide network of experts on our user-friendly platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.

Purpose:
Solidify and demonstrate your understanding and application of the conditional and looping programming constructs in Python by creating a number guessing game. Your program will use a random number generator to choose a mystery number between 1 and 10 and give the user 3 attempts to guess the mystery number.

Skills
The purpose of this assignment is to demonstrate use of multiple and nested loops and if statements. These are basic foundational coding skills that are widely used all programs regardless of the language or the problem the code is solving. In addition you will need to bring in a library to generate random numbers. Familiarity with using additional libraries also is needed skill for most python programs.

Knowledge
This assignment will help you become familiar with:

Using the random number library
Using Boolean variables to control looping
Using integer variables to repeat an action a fixed amount of times (e.g. only allowing user to have 3 guesses)
Using relatively complex conditional statements embedded inside while loops


Sagot :

Thank you for trusting us with your questions. We're here to help you find accurate answers quickly and efficiently. We appreciate your time. Please come back anytime for the latest information and answers to your questions. Westonci.ca is committed to providing accurate answers. Come back soon for more trustworthy information.