Question: help solve how many names code! SANDHUX MY SECTION RESUME D E PEYTON PARKER 5.2.9: How Many Names? SUBMIT CONTINUE RUN CODE TEST CASES ASSIGNMENT
SANDHUX MY SECTION RESUME D E PEYTON PARKER 5.2.9: How Many Names? SUBMIT CONTINUE RUN CODE TEST CASES ASSIGNMENT | DOCS GRADE code should use a for Success 1 amount = int(input("How many names do you have? ")) 2 nanelist 3 index=0 4. for i in range(amount): name = input("Nane: ") 6 namelist.append(name) index + 1 8 print nanelist[ej str(namelist[1]) + str(nanelist[2] X +""+nanelist[-1] If the user has 3 nanes, Tracy' 'the' 'Turtle', your code should print them all. Make sure you are only printing the names that are Input Expected result Tracy the Turtle Your result Tracy the Turtle Turtle If the user has 6 Danes, 'King Arthur of the Round Table', your code should print them all. Make sure you are only printing the names that are Expected result King Arthur of the Round Table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
