PYTHON QUESTION

Exercise 9.3.9: Full Name & Citation
points
Write a program that asks a user for their first and last name and save them
to two variables.
Then print out their full name (First_name Last_name) and then a citation
(Last name, First name)
For example, if the user input the following:
First name: Roger
Last Name: Brown
Your program output should be the following:
Full name : Roger Brown
Citation: Brown, Roger
Use swapping to switch the order of your variables!

Respuesta :

The program that asks a user for their first and last name and save them

to two variables.  Then print out their full name (First_name Last_name) and

then a citation is as follows:

x = input("What's your first name: ")

y = input("What's your last name: ")

print("Fullname: " , x + " " + y )

print("Citation: ",  y + ", " + x )

The code is written in python

The variable x is use to store the input of the users first name

The variable y is use to store the input of the user last name.

Then we print the full name of the user

Then we also print the Citation of the user swapping the names.  

The bolded words in the code are python keywords

learn more: https://brainly.com/question/14909923?referrer=searchResults

Ver imagen vintechnology
Ver imagen vintechnology