Aug-27-2017, 08:31 PM
(This post was last modified: Aug-27-2017, 08:31 PM by ichabod801.)
This line is probably tripping you up:
if x is country:The is operator is not the same as equals. It means that both variables point to the same place in memory, that they are not only equal, but that they are the exact same thing. Try:
if x == country:instead. Also, it would work better to use a dictionary for that information. If you haven't studied those yet, look them up. I believe there's a tutorial on them in the tutorials section of this site.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures