Guessing Team india score in 20-20cricket
Wap gives you a random score of team india in a cricket match,and a playerhas to guess the score given by computer in between 1 to 250 The rules are
1.if a players guess is less than 1 or greater than 250,say "Reduce your expectation for 20-20 Cricket"
2.On a players input,if their score guess is
a.within 10of the number ,return "Close By,you are True Indian Fan!"
b. Further than 10away from the number,return "You don't watch that much!:P"
1
Expert's answer
2020-05-07T03:04:01-0400
Dear Reddy, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Learn more about our help with Assignments: Python
Comments
slkajd
03.06.20, 21:35
import random num=random.randint(1,250) print(num)
guess=int(input("Enter your guess")) max=num+10 min=num-10 if num <
guess < max: print("Close by , ypu are true indian fan") elif num >
guess > min : print("You are not a true indian fan ! : P") elif guess
< 1 or guess > 250 : print("Reduce your Expectation for 20-20
cricket")
Leave a comment
Thank you! Your comments have been successfully added. However, they need to be checked by the moderator before being published.
Comments
import random num=random.randint(1,250) print(num) guess=int(input("Enter your guess")) max=num+10 min=num-10 if num < guess < max: print("Close by , ypu are true indian fan") elif num > guess > min : print("You are not a true indian fan ! : P") elif guess < 1 or guess > 250 : print("Reduce your Expectation for 20-20 cricket")
Leave a comment