eirene3156 eirene3156
  • 24-11-2020
  • Computers and Technology
contestada

Write a Python program that uses test_string that contains a name in the form 'FirstName LastName' prints a *string of the form 'LastName, F.'. *(Only the initial should be output for the first name.)

Respuesta :

Cytokine
Cytokine Cytokine
  • 24-11-2020

test_string = input("Enter your name: ").split()

print("{}, {}".format(test_string[1], test_string[0][0:1]))

I hope this helps!

Answer Link

Otras preguntas

What is 3x3 – 11x2 – 26x + 30 divided by x – 5?
Temperatures in this climate region stay about the same all year long
if a chromosome unfolds itself, how is transcription enhanced?
Lactate can be broken down in a human's _____ and converted to ATP
“This (party) spirit… Agitates the community with Ill-founded jealousies and false alarms, kindles the animosity dislike of one part against another, foments (
I also need help with this please
Blood cells are( concave, compound, or, thread-like) in shape because they lack a nucleus.
Select all that apply. A beta particle: is electromagnetic energy is an electron has zero charge has zero mass has a +2 charge has a -1 charge
which of the following sentences correctly uses a hyphen
Which of the following is considered a modified stem?