I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Every Tom, Dick and Harry
Enter the code below. The code will display all of the names in the list. It is not complete. You need to add the following -

- Add 5 more names to the list.
- change z < ??? to be the size of the new list.
- change print (names[????]) to be print( names[z]).


names = [“Tom”, “Dick”, “Harry”]
z = 0
while z < ???:
    print (names[????])
    z = z + 1

You need to log in or create an account to submit code!

Leave a Reply

Your email address will not be published. Required fields are marked *

Information