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

Lee's fifth-grade class has 1.4 times as many students as Fred's. If there are a total of 60 students , how many students does Fred's class have? How many stude
describe the two main types of interactions that environmental scientists study
Megan collects a sales tax equal to 1/6 of the retail price of each purchase. The tax is sent to the state government. Is the amount of tax collected proportion
In which trimester does the following occur? A sac called a placenta forms around the embryo and is connected to the embryo with an umbilical cord.
Suppose someone gives you an alloy that is made of both zinc and nickel. In general, how do you think the physical properties of the alloy would be similar to o
Suppose 975,462 songs were downloaded from !-tunes in one day a) estimate how many songs were downloaded
which best defines partial pressure in a mixture of gases
Which of the following is not an authoritarian form of government? A. Totalitarianism B. Dictatorship C. Absolute monarchy D. Direct democracy
To create an educational presentation for patients, a medical assistant would most likely use what?
For the past month, you have gotten into a good routine of going running three to four times per week and doing strength training at least two times per week. T