How to handle integer and string from input

It’s not very long since I joined the SO community, but even in my short experience I could see that from time to time ir comes a guy trying to build some kind of dungeon/room-based super game in Python without any Python skills.

Some time ago I gave an asnwer to someone who seemed to coming straight off php. His Python script was a simple “print a menu and ask at the user what to do”. It wasn’t a game, but the core it’s similar and maybe it could of interest to somebody.

He was having problems handling both integers and strings (that’s where the title came from).
And this was my answer (ported in python-3.x):

Read more of this post