lundi 17 mai 2021

User input for gender not functioning

I am attempting to make a game that I made via Rpg Maker MV in python but I've hit a road block in the if statement or rather the gender input. The code is meant to have the user input either "Boy" or "Girl" and depending on that the variable "gender" will be set for pronouns. How ever the console is saying This

This is the code

 import time
    print ("Elvoria")
    print ("Start")
    input = input()
    if input == ("Start"):
      print ("Always Great To See New People")
      time.sleep(1)
      print ("Now Are You A Boy Or Girl")
      genderin = input()
    if input == ("Boy"):
      gender = 1
    elif input == ("Girl"):
      gender = 2
    else:
      print ("Error")

Aucun commentaire:

Enregistrer un commentaire