Monday, November 18, 2019

I learnt to add notes in python

def add_note():
    notes = []
    
    more = True
    while more:
        note = input("What did you do?")
        notes.append(note)
        
        answer = input("Do you want to add more notes? put Y for yes and N for no")
        
        if answer == "Y":
            more = True
        else:
            more = False
            
    print("Here is your notes:")
    for note in notes:
        print(note)
        
        
add_note()

No comments:

Post a Comment