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

El pan está en la sección de __________. 1) la repostería 2) la carnicería 3) los productos lácteos y agrícolas 4) la farmacia
Which of the following is true about a family psychologist? a) A family psychologist would help deal with developmental and behavior problems in children and te
Bortezomib is a/an a. proteasome inhibitor. b. kinase inhibitor. c. selective serotonin reuptake inhibitors (ssris). d. antibiotic.
Which of the following is an example of a solution? A) multipurpose/saline solution b) all are solutions c) sweet tea d) chocolate milk
The area of the gym floor is 6,536 square feet . the length of the floor is 76 feet what is the width
In a septic system, the water filters through sand and naturally occurring minerals as it is returned to the environment. true or false
The figure shows △XYZ. XW⎯⎯⎯⎯⎯⎯ is the angle bisector of ∠YXZ . What is WZ ?
Describe the function of a histogram and list three types of information that histograms convey.
Help Please . Thanks
1. Select the most likely consequence of making credit card payments late.