# Online Python compiler (interpreter) to run Python online.
# Write Python 3 code in this online editor and run it.
tasks =[]
while True:
print("====To-Do-List====")
print("1. Add Tasks")
print("2. View Tasks")
print("3. Complete Tasks")
print("4. Exit")
choice = input("Enter your choice: ")
if choice == "1":
task=input("Enter New Task: ")
tasks.append(task)
print("Task Added")
elif choice == "2":
print("Your Today's Tasks: ")
for i in range(1,len(tasks)+1):
print(str(i)+". "+tasks[i-1])
print("")
elif choice == "3":
nr = input("Enter task u have completed: ")
if nr in tasks:
tasks.remove(nr)
print(nr,"is removed now")
else:
print("Task not found LoL")
elif choice == "4":
break
else:
print("Invalid Choice Kid...")