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

Describe how to use a tens fact to find the difference for 15-8
what was not a significant factor in the aztecs expansion for their empire
How many branches of government are there
what is 962 divided by 3
What would have been the likely consequences for the united states if other western powers had divided china into colonies instead of accepting the open door po
when might a scientist use a model
Some animals can strategize, assess their environment, and cooperate with others to obtain food. true?false?
find the selling price of a $270 bicycle with a 24% markup
Is it true or false that third parties are allowed in the us, but they have never influenced election outcomes
14 and 3 over 5 as a decimal