Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

IN PYTHON LANGUAGE Write a complete program called \"TheNameGame,\" where the us

ID: 3837661 • Letter: I

Question

IN PYTHON LANGUAGE

Write a complete program called "TheNameGame," where the user inputs a first and last name and a song in the following format is printed about their first, then last, name.

Use input to take names from user

Use of at least two escape sequences

Apply upper() method for first and last name

Assignment Due May 24 by 11:59pm Points 20 Submitting a file upload Available after May 10 at 12am Write a complete program called "TheNameGame," where the user inputs a first and last name and a song in the following format is printed about their first, then last, name. What is your first name Fifty What is your last name Cent Fifty Fifty, bo-Bifty Banana-fana to Fifty Fee-fi-mo-Mifty FIFTY Cent Cent, bo-Bent Banana-fana fo- Fent Fee-fi-mo Ment CENT F.C Note: Use string functions in your coding See rubric posted for the points Some Rubric Criteria Ratings Pts Full Marks No Marks 5.0 pts Use input to take names from user 5.0 pts 0.0 pts Full Marks No Marks 5.0 pts Use of at least two escape sequences 0.0 pts 5.0 pts Full Marks No Marks 5.0 pts Apply uppen0 method for first and last name 5.0 pts 0.0 pts Full Marks No Marks 5.0 pts For last line use string method to pick out the initials of first and last name 5.0 pts 0.0 pts Total Points: 20.0

Explanation / Answer

I am assuming that you require it in python3 as you haven't mention anything about 2.x or 3.x

TheNameGame.py

fname = input('Enter your first name : ') #.title()
lname = input('Enter yout last name : ') #.title()
fname = fname.title() # to capitalize first letter of word
lname = lname.title()

song1 = "{0} {0}, bo-B{1} Banana-fana fo-F{1} Fee-fi-mo-M{1} {0}!".format(fname, fname[1:])
song2 = ' {0} {0}, bo-B{1} Banana-fana fo-F{1} Fee-fi-mo-M{1} {0}! "{2}.{3}."'.format(lname, lname[1:], fname[:1], lname[:1])
song = song1+song2

print (song)