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

Reread paragraph 5. Why does the author choose to structure the paragraph this way?(pls be quick)
Please help :)........
Hey help me on this??
The mass number of an element is the
A line has a slope of -3 and passes through the point (5,-1). what is the equation of the line?
How is Diwali celebrated
Plz help me with this box and whisker plot I’m confused plz make the whisker plot and answer these questions Can you make a box and whisker plot and answer thes
Please I really need help on this
what is (24-6)+19÷2​
HELP, QUICK!! How many pencils does Achmed have if Gloria has twice as many as Achmed, Peng has three times as many as Achmed, and the total number of pencils o