Help with functions


#1


https://www.codecademy.com/courses/python-beginner-c7VZg/1/2?curriculum_id=4f89dab3d788890003000096#

Oops, try again. Did you remember to call square(10) on line 9?


Replace this line with your code. 

def square(n):
    """Returns the square of a number."""
    squared = n**2
    print "%d squared is %d." % (n, squared)
    return squared
    
    
    
    square(10)


#2

HI this line

    square(10)

just remove the space before square(10)


#3

This:

is indented even though it is not part of the function. Remove the indent for that line.


#4

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