Question: Fill in the gaps in the nametag function so that it uses the format method to return first _ name and the first initial of
Fill in the gaps in the nametag function so that it uses the format method to return firstname and the first initial of lastname followed by a period. For example, nametagJane "Smith" should return "Jane S
def nametagfirstname, lastname :
return format firstname, lastname
print nametagJane "Smith"
# Should display "Jane S
print nametagFrancesco "Rinaldi"
# Should display "Francesco R
print nametagJeanLuc", "GrandPierre"
# Should display "JeanLuc G
Reset
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
