Taking a Vacation - Before we Begin


I think I am being a little stupid but I am a little stuck!

This is the code I have:

def answer():
answer == 42
return answer

It says 'You're function should return 42'
Please can someone show me where I am going wrong!

Thanks in advance!


Why return answer? :confused: Did you read the error message from Codecademy?
It hints on what you should do/fix.



answer == 42

two equal signs means: check if equal, why would you do that here?


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