First step in "taking a vaction"


#1

def answer():

print max()
return True

Oops, try again. Make sure answer() takes no input. ..................... it has noooo input

is it late, or am I loosing it.... I feel like learning python is an endless battle.

please help, ill eventually get it.


#2

Instruction:
Write a function called answer that takes no arguments and returns the value 42.

so inside function you just have to return 42 nothing else


#3

def answer():
answer = 42
return answer

thanks


#4

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