def show_messages(messages):
    """print message one by one from a list"""
    for message in messages:
        print(message)


messages = ['Hello!', 'Bye!', 'Good afternoon!']
show_messages(messages)
