Starting Point
This commit is contained in:
14
Pass1/Functions.py
Executable file
14
Pass1/Functions.py
Executable 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)
|
||||
Reference in New Issue
Block a user