lundi 22 juin 2020

My python code is saying things after an if which isn’t answered

name = input("Hey whats your name")
print ("Oh hey" + name)
mood = input("How are you?")


if mood == ("Good") or ("good") or ("Good thanks") or ("Good thank you"):
  print("Thats great!")


if mood == ("Bad") or ("bad") or ("Not  great"):
  print("Ah thats not good")
  
if mood == ("Ok") or ("Alright") or ("Fine"):
  print("Oh ok well at least its not bad!")

Does anyone know why it’s printing “Ah that’s not good” and “ Oh ok well at least its not bad!” when good is answered?

Aucun commentaire:

Enregistrer un commentaire