shaelycole6663 shaelycole6663
  • 22-10-2020
  • Computers and Technology
contestada

Write a program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. End with newline. Example output if the input is: Maya Jones

Respuesta :

Cytokine
Cytokine Cytokine
  • 22-10-2020

In pyton:

name = input("What is your name? ")

lst = name.split()

print(f"{lst[-1]}, {lst[0]}")

I hope this helps!

Answer Link

Otras preguntas

The figure is reflected across line m and then across line n. What is the resulting transformation? a. glide reflection b. rotation c. translation d. reflection
I need the answers AND assumptons
Which arguements logically support their claims with relevant evidence? Check all that apply
what is 5 1/6 (-2/5) written as a fraction
If two similar large plates each of area having surface charge density is +a and -b are separated by a distance d in air find the expression for the potential d
Sarah is tasked with analyzing financial records in order to find discrepancies, trends, as well as indicators of where efficiencies may be made. She discovers
Anyone know the answer to this?
Why did the agricultural revolution begin?
At the close of the American revolution, the United States was the most democratic country in the world. True or false?
Ryan remembers numbers using images that look somewhat like each number: 0 is a ball, 1 is a stick, 2 is a hanger, 3 is a comb, 4 is a kite, etc. Ryan remembere