Computers and Technology
Computers and Technology, 12.03.2021 15:20, schwann

Many documents use a specific format for a person's name. Write a function format_name that takes a single parameter name, which contains a person's full name and outputs last name followed by the initials of the first name (and middle name, if applicable). The assumption is that the last name will always be the last word in the input string. If the input is:
firstName middleName lastName
the output should be:
lastName, firstInitial. middleInitial.

>>> format_name("firstName middleName lastName") lastName, firstInitial. middleInitial.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:00, babyshazi
In a cellular network each cell is controlled by a tower what are these towers called?
Answers: 3
image
Computers and Technology, 22.06.2019 10:20, alcantar28eduin
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
image
Computers and Technology, 23.06.2019 17:00, osirisarellane3792
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
image
Computers and Technology, 24.06.2019 12:00, tipbri6380
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
Do you know the correct answer?
Many documents use a specific format for a person's name. Write a function format_name that takes a...

Questions in other subjects:

Konu
History, 04.07.2019 23:00