#simple function
def my_func():
    print("spam")
    print("spam")
    print("spam")
my_func()

# The example below defines a function that takes one argument
def print_with_exclamation(word):
    print( word + "!")

print_with_exclamation("spam")
print_with_exclamation("egg")
print_with_exclamation("python")