At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Join our Q&A platform to get precise answers from experts in diverse fields and enhance your understanding. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

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.