Created
February 15, 2021 10:16
-
-
Save Athira2199/b63fae3dcf8d5e0ed84e6ace1047c3b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#handler for display operations | |
def show_handler(): | |
todos = todo.find({}) | |
flag = False | |
print("------------------------TODO----------------------------") | |
for item in todos: | |
print('name : ',item["name"],'| description : ',item["description"],'| status',item["status"]) | |
flag = True | |
if(not flag): | |
print('You have not added any todo yet !!!!') | |
print("------------------------THANK YOU----------------------------") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment