That's another nice thing about Python though, you can enter commands directly into the interpreter.
Execute python.exe in a shell. The interpreter appears. Type print("Hello World") and the interpreter will respond back to you.
Earlier today I was dealing with a deserializer that someone else wrote and I had no idea what the output would look like. To test it I just loaded up the interpreter, typed a few imports and data commands, typed output=deserialize(var) and then pprint.pprint(output). Right away it spat out a list of dictionaries.
2
u/HostisHumaniGeneris Feb 24 '12
That's another nice thing about Python though, you can enter commands directly into the interpreter.
Execute python.exe in a shell. The interpreter appears. Type print("Hello World") and the interpreter will respond back to you.
Earlier today I was dealing with a deserializer that someone else wrote and I had no idea what the output would look like. To test it I just loaded up the interpreter, typed a few imports and data commands, typed output=deserialize(var) and then pprint.pprint(output). Right away it spat out a list of dictionaries.