Ask a Question
#Assignment-3(Game)
#Gennerating computer score module from random import randint
#print("Computer generated team India cricket score-",randint(1,250))
#Guessing module---
user_input=int(input("Enter yours guess"))
#Checking weather the number is near by yes or no...
difference=abs(user_input-randint)>10
if(difference<=10 and difference>=1):
print("You are true Indian fan")
else:
print("You are far away bro") In code it says that randint is not defined?? pls help....
#Assignment-3(Game)
#Gennerating computer score module from random import randint
#print("Computer generated team India cricket score-",randint(1,250))
#Guessing module---
user_input=int(input("Enter yours guess"))
#Checking weather the number is near by yes or no...
difference=abs(user_input-randint)>10
if(difference<=10 and difference>=1):
print("You are true Indian fan")
else:
print("You are far away bro") In code it says that randint is not defined?? pls help....
Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now