Welcome to Westonci.ca, where finding answers to your questions is made simple by our community of experts. Connect with a community of experts ready to help you find solutions to your questions quickly and accurately. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

In python
BINGO! - Create a piece of code that meets the following requirements:
Asks the user to enter their name.
The code should then ask the user to enter their lucky number (it should tell them it must be between 1 - 10).
The code should then randomly generate and output a number between 1 - 10. If the number is a match, it should display the message “BINGO!”. However if it does not match, the code should continue until the two numbers match.
At the end of the code it should display how many numbers it took until the user got a match.

Sagot :

Thank you for trusting us with your questions. We're here to help you find accurate answers quickly and efficiently. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.