325,979 views
3 votes
3 votes
Write a function that takes in a parameter, squares it, and then prints the results. Squaring a number means multiplying it by itself. Then make several calls to that function in your start function to test it out. Does it

work for all arguments?

this is what i have so far but when i check the code it says “you should call your function square with some parameters. call your function at least twice” what am i doing wrong?

Write a function that takes in a parameter, squares it, and then prints the results-example-1
User Ashok Gupta
by
3.1k points

1 Answer

26 votes
26 votes

Answer:

are you looking answer like this?

def square(x):

return x * x

def start():

print(square(2))

print(square(3))

print(square(4))

print(square(5))

start()

User R Nar
by
2.6k points