# 8-12. Sandwiches: Write a function that accepts a list of items a person wants
# on a sandwich. The function should have one parameter that collects as many
# items as the function call provides, and it should print a summary of the sandwich
# that is being ordered. Call the function three times, using a different number
# of arguments each time.

def sandwich(*items):
    print('A sandwich has been ordered with the following items:')
    for item in items:
        print(item)
    print('')

sandwich('salami', 'lettuce')
sandwich('ham', 'jam', 'spam', 'spinach')
sandwich('grilled cheese')
075b66fdacb031be0ad5b4a433dbf7fffcbf5386
<mask token>

def sandwich(*items):
    print('A sandwich has been ordered with the following items:')
    for item in items:
        print(item)
    print('')


<mask token>

def sandwich(*items):
    print('A sandwich has been ordered with the following items:')
    for item in items:
        print(item)
    print('')


sandwich('salami', 'lettuce')
sandwich('ham', 'jam', 'spam', 'spinach')
sandwich('grilled cheese')

# 8-12. Sandwiches: Write a function that accepts a list of items a person wants
# on a sandwich. The function should have one parameter that collects as many
# items as the function call provides, and it should print a summary of the sandwich
# that is being ordered. Call the function three times, using a different number
# of arguments each time.

def sandwich(*items):
    print('A sandwich has been ordered with the following items:')
    for item in items:
        print(item)
    print('')

sandwich('salami', 'lettuce')
sandwich('ham', 'jam', 'spam', 'spinach')
sandwich('grilled cheese')