1 Comment

notes=[]

options=int(input(''' Menu:

1.add a notes

2.View all notes

3.exit

Choose an option (1,2 or 3):'''))

while options !=3 :

if options==1:

note=input("enter your note")

notes.append(note)

print("Note added")

elif options==2:

print("Notes List :")

for i in notes:

print("-",i)

else :

print("Please enter the right option")

options=int(input(''' Menu:

1.add a notes

2.View all notes

3.exit

Choose an option (1,2 or 3):''') )

Expand full comment