Before We Begin


#1



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


The error message is make sure answer() takes no input


def answer(n):
    print '42'
    return '42'


#2

Error message means that there should be no parameter/input in answer(). I see a n which is your parameter/input in answer.


#3

Got it. Make sure the there is nothing between ()
This code works:

def answer():
return 42


#4

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