I am trying to learn to define a function in Python.
I tried this syntax
>>> def hello():
... print("Hello")
but when I press the enter key after "Hello" I get the expected an indented block
error.
Actually I am trying to write this code
>>> def hello():
... print("Hello")
... print("Computers are Fun")
but I cannot because of the error message.
What is going wrong? How can I fix it?