Python Python Basics Functions and Looping Create a Function

Isach Stevik
Isach Stevik
1,098 Points

Need help

Do not understand this task

squaring.py
def square(number):
    number = 5
    print(number * number)

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 48,731 Points

Some things:

  • Do not reassign number to 5. The function should return the square of whatever is passed in.
  • Instead of printing the result return the result