Python Functions

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)

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress and ThemeMag