how do i make a list in dictionary
hello that's my simple code for noting down dreams from python crash course practices 10.7
in this practice i tried to make a list of dreams instead of simply adding a value to key
but dunno how to make a list . i did use list() but didn't work out well
how can i fix this?
dream_makers = {}
active = True
active2 = True
message = "hello\n\t here we save all your dreams to remind you later or when you achive it :)"
message += "whats your name\nenter 'quit' to exit\t"
while active :
name = input(message)
if name == "quit" :
break
dream = input("what are your dreams")
dream_makers[name] = dream
while active2:
sdream = input("do you have another dream to achive? \nIF NOT ENTER NO")
if sdream != "NO":
dream_makers[name] = dream.append(sdream)
continue
else :
active2 = False