Python function default return value
If we do not not specify a return value for a Python function, it returns None
. This is the default behaviour.
# Function returning None
def my_function(): pass
print(my_function())
#Output
None
If we do not not specify a return value for a Python function, it returns None
. This is the default behaviour.
# Function returning None
def my_function(): pass
print(my_function())
#Output
None