So, I'm building up a simple game in Python to get more acquainted with the language, and couldn't find a way of searching if this was asked before. :P Any-way, when this code block executes, I always end up with my "Position" being .y +10. I've rearanged and checked a couple things, but feel I'm missing a quite basic part of what I would normally handle with a switch statement
mv = input('N,S,E,W?')
if mv == 'N' or 'n':
Me.Position.Y += 10
elif mv == 'E' or 'e':
Me.Position.X += 10
elif mv == 'W' or 'w':
Me.Position.X -= 10
elif mv == 'S' or 's':
Me.Position.Y -= 10
else:
print('Stand')
and then:
print('Lage: X:', Me.Position.X, ' Y:', Me.Position.Y, ' Z:', Me.Position.Z)
with no way of my other options being used.
THANKS!