samedi 14 avril 2018

Python if Statement evaluation [duplicate]

This question already has an answer here:

I currently am having issues with this line of code

roomChoice = input("Choose 1-3: ")

if roomChoice == 1:
    print("You went to the bar, and lost $5, your total loot is : " + main.totalLoot)
else:
    print(roomChoice)

Whenever I input 1, it prints out 1 instead of evaluating the first if statement

Aucun commentaire:

Enregistrer un commentaire