"""
function in python

a group of statements for a specific task

step1. define a function with a name
step2. call the function

keyword: def
function name: a type of identifier

note:
define first, then use it
reusing code

"""

# print out greeting words to my friends for 10 times
# "Hello, my friend"

"""
# day 1
print("Hello, my friend 1!")
print("Hello, my friend 2!")
print("Hello, my friend 3!")
print("Hello, my friend 4!")
print("Hello, my friend 5!")
print("Hello, my friend 6!")
print("Hello, my friend 7!")
print("Hello, my friend 8!")
print("Hello, my friend 9!")
print("Hello, my friend 10!")


# day 2
print("Hello, my friend 1!")
print("Hello, my friend 2!")
print("Hello, my friend 3!")
print("Hello, my friend 4!")
print("Hello, my friend 5!")
print("Hello, my friend 6!")
print("Hello, my friend 7!")
print("Hello, my friend 8!")
print("Hello, my friend 9!")
print("Hello, my friend 10!")
"""

# greeting()
def greeting():
    print("Hello, my friend 11!")
    print("Hello, my friend 2!")
    print("Hello, my friend 3!")
    print("Hello, my friend 4!")
    print("Hello, my friend 5!")
    print("Hello, my friend 6!")
    print("Hello, my friend 7!")
    print("Hello, my friend 8!")
    print("Hello, my friend 9!")
    print("Hello, my friend 10!")

# day1
greeting()
print()

# day2
greeting()
print()

# day3
greeting()
print()


# ex.
# define a function
# call a function

numbers()
numbers()

def numbers():
    print(1)
    print(2)
    print(3)
    print(4)


