Oct-14-2019, 06:31 AM
Finally got it - a big thanks for all the help, 1 down and 999999999999 to go
final code:
final code:
# LEARNING ABOUT "LIST" # list of names --- ListOfNames = ["tom" , "bill" , "dick", "harry"] print(ListOfNames) print("") #add a space for next line # what is the total numbers in the list --- TotalNumberInList = str(len(ListOfNames)) print ("Total number of names are: " + str(TotalNumberInList)) # keep number in range --- print ("numbers to use must be between 1 and " + str(TotalNumberInList)) print("") #add a space for next line # remove one name --- RemoveNameNumber = int(input ("Enter the number of the name to remove: ")) print("") #add a space for next line # name that will be removed --- NameRemoved = ListOfNames[RemoveNameNumber -1] print ("Person being removed is " + NameRemoved) print("") #add a space for next line # remove name from listing and print new listing --- del ListOfNames[RemoveNameNumber -1] print ("New List of Names are: " + str(ListOfNames))