Python Python Basics Functions and Looping Create a Function

Przemyslaw Chmiel
Przemyslaw Chmiel
13,532 Points

Python error in square function nconsistent use of tabs and spaces in indentations

Hello Guys I have issue with creating this function in python

squaring.py
def square(number):
    number= int(input("Give me a number "))
    value = number ** number
    return value

square()

1 Answer

Przemyslaw Chmiel
Przemyslaw Chmiel
13,532 Points

Ok I'm fine..

This is correct answer

def square(number): return number ** 2

square(5)