1. Before We Begin


#1



https://www.codecademy.com/courses/python-beginner-P5YtY/0/1?curriculum_id=4f89dab3d788890003000096


Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 1)


def answer
    return 42


#2

Seems like you're forgetting some python syntax.
Here's an example.

def function():
    return "foo"

You need a : after your def and if your function doesn't need parameter(s), then you just put brackets with nothing inside.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.