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 is 1/2 of a liter in mL?
How do you solve, 7/9+1/2-3/2+2/9 ?
Which statement is inconsistent with the concept of isotopes of the same element? a. Isotopes have the same number of protons b. Isotopes have the same atomic n
By which name was William the Conqueror known in his native land?
16x²-81=0 solve the following quadratic equation
What might happen to the sea star population after oyster beds are destroyed
I need a simple diagram that I can easily understand tectonic plates...
I need a simple diagram that I can easily understand tectonic plates...
How do you solve, 7/9+1/2-3/2+2/9 ?
What is 1/5 of 15 pennies