mardi 3 mars 2015

How can I assign an inputted string value to a variable?

x = input("Enter roman numberal:")


I need to enter one roman numeral as a string and return the value. When I run the code above, I get that whatever I enter in as the string isn't defined. I just want x to represent the inputted string, what am I doing wrong?


I am using Python 2.7.3.


Aucun commentaire:

Enregistrer un commentaire