Declaration of functions in Python is nice and simple.
def my_function():
print("Hello From My Function!")
The call is also uncomplicated
my_function()
With Arguments
def sum_two_numbers(a, b):
return a + b
sum_two_numbers(10,8)
Declaration of functions in Python is nice and simple.
def my_function():
print("Hello From My Function!")
The call is also uncomplicated
my_function()
With Arguments
def sum_two_numbers(a, b):
return a + b
sum_two_numbers(10,8)