Starting Point

This commit is contained in:
2018-02-22 14:42:33 +01:00
parent b3b46b401f
commit b80d0e844a
14 changed files with 165 additions and 0 deletions

14
Pass1/Functions.py Executable file
View File

@@ -0,0 +1,14 @@
# Define 3 functions
def my_function():
print("Hello From My Function!")
def my_function_with_args(username, greeting):
print("Hello,{}, From My Function!, I wish you {}".format(username, greeting))
def sum_two_numbers(a, b):
return a + b
my_function()
my_function_with_args("Elvis Presley", "left the building!")
x = sum_two_numbers(5, 15)
print(x)