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

A glider begins its descent 3/5​​ mile above the ground. After 30 minutes, it is 9/20​​ mile above the ground. If it continues to descend at this rate, how long
How many spaces away from a Noble gas are the following elements? a. Na, Li, K and Cs?
somebody, please solve this. Ramesh replaced all his 100-watt bulbs, a total of 8 with LED of 8 watts. If he uses bulbs for 8 hours per day, how much cost he w
how to help to avoid volcano eruption​
Henry made the scatterplot shown. The scatterplot shows the data points, and it also shows the linear model that Henry drew. Which statement best describes t
Leila had 160 dollars to begin with. She just spent k dollars. Using k, write an expression for the number of dollars she has left.
What were problems faced by the Allied powers after World War II? A. Rebuilding the economics of Europe B. Creating new governments in Europe C. Getting agre
I have 10 books, 3 of which are good. If I randomly select a book at random, what's the probability that it is not good?​
Label the parts of this wave. A B В: A C > o D < mi С D
The following graph shows the force exerted on and the displacement of object being pulled Find the work done to pull the object 7.0 m