Function in Python
Function in Python
Syntax:
def function_name():
Code to execute
print("This is a function without arguments")
Example :
Syntax:
Example:
3. Function Returning Value
A function that returns a value after execution.
Syntax:
10 Solvable Questions