Press enter once after defining your function (that is, enter one blank line). Essentially, this lets Python know that you are done defining your function.
Once you see >>> again, you can call your function.
See the picture for how it should look when done right: