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

what does 'secret, black and midnight hags' mean in shakespeare?
what are the rational numbers of -12,0,35,4.85,√12,√36,19/6,-10/11,1.4949949994
write a paragraph on wonders of science
Relationship between Mini and Kabuliwala
What different peoples contributed to the cultures of Spain and Portugalit has to be five different peoples
Georges Cuvier's discovery of fossils of Irish elk and giant ground sloth:
what does 'secret, black and midnight hags' mean in shakespeare?
What different peoples contributed to the cultures of Spain and Portugalit has to be five different peoples
resources are an integral part of human survival.yet indiscriminate use of them by humans has led to a crisis situation."discuss the above ststement in light of
What is 3 to the 3rd power times 3 to the 4th power