Many documents use a specific format for a person's name. write a program whose input is:

firstname middlename lastname

and whose output is:

lastname, firstinitial.middleinitial.

ex: if the input is:

pat silly doe
the output is:

doe, p.s.
if the input has the form:

firstname lastname

the output is:

lastname, firstinitial.

ex: if the input is:

julia clark
the output is:

clark, j.

middle name = int.input middle name:

lastname = int.input last name:

firstinitial = firstname[0]

middleinitial = middlename[0]

print(lastname+", "+firstinitial+"."+middleinitial)


that is what i have so far on this assignment. couid someone please help me complete it?



Answer :

Other Questions