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

One of the main water lines supplying the houses in a town has broken. The town officials have issued an order telling everyone to boil their drinking water unt
Whole animal cloning puts a nucleus from a cell of one animal into A. the chromosome of a bacterium. B. the plasmid of a bacterium. C. an egg cell from another
Explain how diabetes can affect two other human body systems.
ls 0.5 equal to 0.500
Life coaches use __________ to teach people life skills, relationship skills, and communication skills. A. telephone interviewing B. standardized tests C. motiv
why did americans want george whachington to be president
Suppose the human gene coding for hemoglobin is inserted into a bacterial plasmid. A bacterial culture is transformed with the recombinant plasmid. Which of the
What occurs when there is a lot of money in circulation, but it is worth less and prices are rising? A. inflation B. shortage C. deflation D. recession
why did americans want george whachington to be president
Katie has a roll of ribbon that is 8 feet long.she cuts off 3 feet of ribbon and the remaining length is cut into 8 shorter pieces of equal length.what is the l