Hey all was hoping for some help with this piece of code. The code needs the user to input a name until done is typed and it should provide an output of Hello (name) for every name inputted. Below is the code I have written:
names = input("Enter a name:")
list = []
while True:
if names == 'done':
break
list.append(names)
print("Hello",list)
After I run the code and enter a name nothing happens, it won't allow me to input another name or even done and I have to shut it down. Any help or tips would greatly appreciated. Thanks!!