# myLists.py # page 168 firstNames = ['Bob','Mary','Joe'] print( type(firstNames) ) new_contact = input("Enter a new contact first name: ") firstNames.append(new_contact) # append add to the end of the list print( firstNames ) # for loop to print the firstnames contactid = 0 for firstname in firstNames: print(f"Contact ID: {contactid}. First Name: {firstname}") contactid += 1 # Ask the user what contact id to update updateid = int( input("What contact id do you want to update? ") ) # Update that contact firstNames[updateid] = input("What is the updated name? ") ''' firstNames[2] = "Robert" ''' print( firstNames )