""" Program to display names in reverse order
"""
# Request user input
full_name = input("Enter full name: ")
# List containing names
names = full_name.split(' ')
# Reverse order of names in the list
names.reverse()
# Display names in reverse order
print("Names in reverse order:", *names)
Comments
Leave a comment