lundi 5 octobre 2020

Is it possible to set an if-then statement with custom variables?

I'm trying to make a game in Python, and I can't figure out how to make an if statement using custom variables on both sides.

name = input("What's your name?  ")
print("So your name is " + name)
nameResponse = input("Is this correct?")
if nameResponse == Yes:
  print("Try not to die!") 

Aucun commentaire:

Enregistrer un commentaire