Python Python Basics Functions and Looping Create a Function

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

Hello Guys I have issue with creating this function in python
def square(number):
    number= int(input("Give me a number "))
    value = number ** number
    return value


1 Answer

Ok I'm fine..

This is correct answer

def square(number): return number ** 2