Matthew Earlywine1,315 Points
Trouble with Task 2
Great now that you have created your new square method, let's put it to use.
Under the function definition, call your new function and pass it the argument 3.
Since your square function returns a value, create a new variable named result to store the value from the function call.
def square(argument): try: return int(argument) ** 2 except ValueError: return str(argument) * len(argument)
Antonio De Rose17,506 Points
it is asking to call the function, that you created and pass the argument 3, and then store the value in a variable called result.
3 thins you will have to know.
1) how do you call the function you created ? square
2)how to pass an argument into the call function ? square(3)
3) how to store the value from the result you get ? result = square(3)
Craig DennisTreehouse Teacher
I am asking you to use the function you just created.
The function is defined correctly, and I want you to call it with the value of 3. Since it returns a value, store it in a variable named result.
That make sense?