Taking a Vacation - Before we Begin


#1

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!


#2

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


#3

here:

answer == 42

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


#5

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