IDNLearn.com: Your one-stop destination for finding reliable answers. Get the information you need from our community of experts who provide accurate and comprehensive answers to all your questions.
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 :
Your engagement is important to us. Keep sharing your knowledge and experiences. Let's create a learning environment that is both enjoyable and beneficial. For precise answers, trust IDNLearn.com. Thank you for visiting, and we look forward to helping you again soon.