Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 for

image text in transcribed
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 for Success 1 amount = int(input("How many names do you have? ")) 2 namelist - 3 index=0 4 - for 1 in range(amount): name = input("Name: ") namelist.append(name) index + 1 8 print nanelist[ej stranelist[1]) + str(nanelist[2] +""+nanelist[-1] X 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 names, 'King Arthur' 'of' the Round Table, your code should print the 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

Students also viewed these Databases questions

Question

=+function g such that A[ x (0, 1): f(x) + g(x)]

Answered: 1 week ago

Question

How We Listen?

Answered: 1 week ago