0

I WOULD LIKE TO MAKE A PROGRAM THAT GUESS THE NUMBER YOURE THINKING

I made it to long, someone could help me ? print("HELLO AGAIN \n today i challenge you ! \n i will guess a numer you are thinking right now (between 1-10)") print("") print("when you are ready plase type (ok )") print("") a=input("type here:") if a == ("ok"): print("") print("ALRIGHT, NOW .... \n is your number greater than 5? \n \n (you have to answer yes or no) \n ") x=input("A:") if x == ("yes"): #X >5 print("okey okey now... if your number greater than 7? \n \n") x=input("A:") if x == ("yes"): #X>7 print ("your number is greater than 9 right ? \n ") x=input("A:") if x == ("yes"): #X>9 print ("your number is 10") else:#X<8 print("is your number less than 8?") x=input("A:") if x == ("yes"): print ("your number is 7") else: #X=8? print("is your number 8?") x=input("A:") if x == ("yes"): print("I GUESS IT, ITS 8!! ") else: print("then your number must be 9!") elif x == ("no"):#X<7 print("is your number 6?") x=input("A:") if x== ("no"): print("then your number must be ...\n 7!") else: print("your number is 6!") else: print("Is your number greater than 3?") x=input("A:") if x!= ("no"): #X>3 print("Is your number greater than 4 ?") x=input("A:") if x!= ("no"): #X=5 print("I GUESS IT, ITS \n 5!! ") else: print("then your number must be 4!") else: print("okey okey now... if your number greater than 2? \n \n") x=input("A:") if x == ("yes"): #X>2 print ("your numbe

31st Jul 2020, 3:46 PM
Reinaldo Marquez
Reinaldo Marquez - avatar
1 ответ
31st Jul 2020, 3:52 PM
The future is now thanks to science
The future is now thanks to science - avatar