Answer to Question #114578 in Python for Reddy

Question #114578
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

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

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS