I am trying to define a function on the Python REPL. Every time I try to run the below code, I get a syntax error.
Code:
def hello(): print (\"Hello!
You should add a newline between defining function and calling it:
def hello(): print ("Hello!") hello()