Square Function


#1



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


def squared(n):
    """Returns the square of a number."""
    squared = n**2
    print "%d squared is %d." % (n, squared)
    return n**2
    
# Call the square function on line 9! Make sure to
# include the number 10 between the parentheses.
    print(squared(10))


#2

The indentation makes this line invisible.


#3

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