jeudi 5 mars 2020

Python if-statement number1 don't work. I have no idea what I did false". I use Repl.it [closed]

python

Antwoorden = 0
def Number1():
print("Take a number between 1 and 63")
import time
time.sleep(3)
number = input("Do you have a number? ")
if number == "Yes" or "yes":
print(" 1, 3, 5, 7")
print(" 9, 11, 13, 15")
print("17, 19, 21, 23")
print("25, 27, 29, 31")
print("33, 35, 37, 39")
print("41, 43, 45, 47")
print("49, 51, 53, 55")
print("57, 59, 61, 63")
number1 = input("Stands your number between the following numbers? ")
if number1 == "No" or "no":
print("ok")
Number2()
elif number1 == ("Yes") or ("yes"):
global Antwoorden
Antwoorden += 1
print(Antwoorden)
Number2()
else:
print("Typ yes or no")
Number1()
elif number == ("no"):
number = 0
print("Than, I shall wait another moment")
Number1()
else:
print("you foul, type 'yes' or 'no'")
Number1()

def Number 2():
print (Antwoorden)
'''

Aucun commentaire:

Enregistrer un commentaire