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.)

Relax

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

Having trouble with trigonometry , please help.CSCx (1 + SINx) = 1 + CSCxprove the identity
What Does "Be Careful What You Wish for" Mean?
What is one tenth of 360°
what branch of government makes the laws
how does climate affect the type of biome found in an area?
What Is Social Rejection? need help
one out of 44 high school ball player plays college ball. one out of 23 college players plays professional ball. What fraction of high school player plays profe
A rectangle's length is three times its width.  Let w denote the rectangle's width.  What polynomial represents the rectangle's area?
3/14 of 10/9 = 5/21 is this right??
A can of drink is in the shape of a cylinder. The can has a radius of 4cm and a height of 15cm. Calculate the volume of the cylinder. You must include the corre