My first impression was that you had to program the command line with cyclic user input inside that command line. (Nested user input.) This may not be what you wanted, but I already wrote this answer before I realized this. So, I am going to publish it if other people (or even you) find it useful.
You just need nested loops with input instructions at each level of the loop.
For example,
data="" while 1: data=raw_input("Command: ") if data in ("test", "experiment", "try"): data2="" while data2=="": data2=raw_input("Which test? ") if data2=="chemical": print("You chose a chemical test.") else: print("We don't have any " + data2 + " tests.") elif data=="quit": break else: pass
Shule
source share