samedi 6 février 2021

Python just straight up making no sense [duplicate]

Guys python is just straight-up wrong. Here is my code:

#Repeat until loop
count = 0
while (count < 9):
  print("What is your name?")
#If creator code 
 x = input("Type Stop program or enter your name ")
  if x == "QiwiCode":
      print("")
      print("Good morning creator")
      print("")
#Quit code 
 elif x == "Stop program" or "stop program" or "stop Program" or "Stop Program":
      print("Quitting.")
      time.sleep(1)
      print("Quitting..")
      time.sleep(1)
      print("Quitting...")
      time.sleep(1)
      print("Goodbye")
      count = 10
#Name if not creater or quit code
elif x != "Stop program" or "stop program" or "stop Program" or "Stop Program" or "QiwiCode":
      print("")
      printdHello",x,)
      print("")

I put in a random name (tom) and it just ran the quit function! Can someone help?

Aucun commentaire:

Enregistrer un commentaire