Question: use python Q8. Write a program to guess a number calculated by a randint() and match the number with a number given by user. Limit

use python
Q8. Write a program to guess a number calculated by a randint() and match the number with a number given by user. Limit should be between 0 and 9. If user number entererd by user match with randint number. print (Hurray you have won"), otherwise print("Better luck next time"). If a user enter number greater than 9 and less than 10. ask for input again. After every guess ask user to play more, if yes, write Y Else N. You can use nested loop. (Marks 30) Enter number:9 Var=Randin() //9 Hurray you have won Y Enter number: Var=Randing) 19 Better luck next time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
