Hi there,
I'm writing my first Python script for a(n imperative) programming class at university, and I want to make it a little better. It's meant to be fairly short, 50 lines. I've written the basic 'mechanism' to look at the user input.
Instead of simply printing every property of the input (it analyses an integer input and tells you if they are such and such, WOW!), I want to make a dictionary containing the 'name' of each property and whether it's true or not, or it's value. for instance, {'Even':True}. Fair enough. I also want the program to repeatedly ask the user for input (to type in one of the keys from the dictionary), so each time there is an input, it prints the value and then asks the same question. This is my main issue. I've only seen the Python tutorial, and I haven't found anything relevant.
In short: How do I keep doing the same thing over and over?
Also, how do I get a program not to close when it's done?