Final answer:
A Python program can ask for a user's first and last names, display them, and then print the citation by swapping the name order. The 'input' function is used to collect names, and the swap is done by reassigning variables.
Step-by-step explanation:
To write a Python program that asks a user for their first name and last name, you can use the input() function. After that, you will print the full name and citation, with the order of the names swapped using variable swapping.
Example Python Program
first_name = input("Enter your first name: ")
last_name = input("Enter your last name: ")
# Display full name
print("Full name :", first_name, last_name)
# Swap the variables to get the citation format
first_name, last_name = last_name, first_name
# Display citation
print("Citation:", first_name, ",", last_name)
When running this program, after the user provides their first and last names, it will show the full name as 'First_name Last_name' and the citation as 'Last_name, First_name'.