I am trying to create a program in python 3.4 that uses a list to store the names of some notable celebrities. I want to use a loop to prompt the user for the names and to add them to the list. When the user enters "done" the loop should stop. The program should then output the number of celebrities entered. Finally, the program should use another loop to display the celebrity names, each on its own line, and "done" should NOT be in the celebrities list
def main():
with open("celeb1.txt", "w") as Celeb:
def Celebrites():
Celeb = ["Johnny Depp', 'Gary Busey', 'Tommy Lee Jones"]:
#file for saving names.
#write the list to the file
.writelines(Celeb1.txt)
#close file
outfile.close()
main()