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

Economical theories believe which type of mentality is the main cause of crime in poorer communities
My sister needs help !!!!!!! A coin is flipped 150 times. The results of the experiment are shown in the following table: Heads 63 Tails 87 Which of
round 7.954 to the nearest tenths
write a double fact for 2+3
Where do congressional leaders usually refer a proposed bill after its introduction?
3 yards of fabric for $13.47
what two partial products would you add to find 513 x 46
What is a sample treated like other experimental groups except no variable is used?
The goal of separation of powers is to ensure A. people are born with power that can not be taken away by government B. governments have power because the citiz
pada masa pemerintahan demokrasi terpimpin indonesia di pimpin oleh presiden?