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

Two forces, 300 N and 500 N, act on an 80-kg particle. 300 N north and 500 N east. Find the magnitude of the resultant acceleration if the forces make a 900 ang
Did John F. Kennedy end segregation or did Abraham Lincoln?
What happened to freedmen as a result of the compromise of 1877
Pls help - I’ll give brainliest!
Need help on this please
Is it true that the (small area) + (medium area) = large area? Explain
What is the best way to ensure that a 40 watt bulb and a 60 watt bulb have the same voltage applied to them
If you decide to hunt for your next job while you are still employed, you should be careful to _______. a. only search for jobs in other industries b. tell your
Odysseus and his surviving men ultimately escape the cyclops by-
A 7 foot ladder is leaning against the building. The foot of the ladder is 2 feet away from the base of the building. How far up the wall is the top of the ladd