Is it possible for the user to input a Python snippet and run it? Like this:

x = raw_input("Python snippet: ") #And then run the script typed in here

Also, we know how errors happen all the time. Is it possible to make it so that when errors happen because there was something invalid inputted into a raw_input (or otherwise any inputting function), a print function pops up and defines the error?

See the exec and eval functions.

See try...except.,else...finaly for error handling.