I’ve created a To Do List app in python, now what’s next? /u/Yubion Python Education

So basically I have created my first python program which is a To Do List maker app. Any ideas of the project I should start making to learn?

Here is the source code of my app(in case you’re wondering what I have learned already):

print("nWELCOME TO THE DO LIST MAKER PROGRAM") print("---------- Made in Python ----------") toDoList = [] while True: try: print("nOptions") print("=======") print("1.Add a task to the list") print("2.Remove a task from the list") print("3.Mark a task as done from the list") print("4.Show the list") print("0.Exit the programn") option = int(input("Enter an option(0/1/2/3/4): ")) if 0 <= option <= 4: if option == 1: newTask = input("nEnter a task to add to the list(Enter 0 to Cancel): ") if newTask == "0": continue else: toDoList.append({"task" : newTask, "status" : "Unchecked"}) print("n > The task was added to the list successfully!") elif option == 2: while True: try: if len(toDoList) == 0: print("n > The To Do List is currently. There is nothing to remove") else: removeTask = int(input("nEnter the index of the task to remove from the list(Enter 0 to Cancel): ")) if removeTask == 0: print("n > The operation was aborted successfully!") break elif 0 < removeTask <= len(toDoList): toDoList.pop(removeTask-1) print("n > The task was removed from the list successfully!") break else: print("n > Please only enter the index of existed tasks") except ValueError: print("n > Please enter an index(of the task) only") elif option == 3: while True: try: if len(toDoList) == 0: print("n > The To Do List is currently. There is no task to mark as done") else: checkStatus = int(input("nEnter the index of the task to mark as done(Enter 0 to Cancel): ")) if checkStatus == 0: print("n > The operation was aborted successfully!") break elif 0 < checkStatus <= len(toDoList): toDoList[checkStatus-1].update({"status" : "Checked"}) print("n > The task was mark as done successfully!") break else: print("n > Please only enter the index of existed tasks") except ValueError: print("n > Please enter an index(of the task) only") elif option == 4: if len(toDoList) == 0: print("n > The To Do List is currently. There is nothing to display") else: print("nTO DO LIST") print("==========") for i, x in enumerate(toDoList): print(f"{i+1}.{x.get("task")} : {x.get("status")}") elif option == 0: break else: print("n > Please enter a valid option(0/1/2/3/4)") except ValueError: print("n > Please enter a valid option(0/1/2/3/4)") 

submitted by /u/Yubion
[link] [comments]

​r/learnpython So basically I have created my first python program which is a To Do List maker app. Any ideas of the project I should start making to learn? Here is the source code of my app(in case you’re wondering what I have learned already): print(“nWELCOME TO THE DO LIST MAKER PROGRAM”) print(“———- Made in Python ———-“) toDoList = [] while True: try: print(“nOptions”) print(“=======”) print(“1.Add a task to the list”) print(“2.Remove a task from the list”) print(“3.Mark a task as done from the list”) print(“4.Show the list”) print(“0.Exit the programn”) option = int(input(“Enter an option(0/1/2/3/4): “)) if 0 <= option <= 4: if option == 1: newTask = input(“nEnter a task to add to the list(Enter 0 to Cancel): “) if newTask == “0”: continue else: toDoList.append({“task” : newTask, “status” : “Unchecked”}) print(“n > The task was added to the list successfully!”) elif option == 2: while True: try: if len(toDoList) == 0: print(“n > The To Do List is currently. There is nothing to remove”) else: removeTask = int(input(“nEnter the index of the task to remove from the list(Enter 0 to Cancel): “)) if removeTask == 0: print(“n > The operation was aborted successfully!”) break elif 0 < removeTask <= len(toDoList): toDoList.pop(removeTask-1) print(“n > The task was removed from the list successfully!”) break else: print(“n > Please only enter the index of existed tasks”) except ValueError: print(“n > Please enter an index(of the task) only”) elif option == 3: while True: try: if len(toDoList) == 0: print(“n > The To Do List is currently. There is no task to mark as done”) else: checkStatus = int(input(“nEnter the index of the task to mark as done(Enter 0 to Cancel): “)) if checkStatus == 0: print(“n > The operation was aborted successfully!”) break elif 0 < checkStatus <= len(toDoList): toDoList[checkStatus-1].update({“status” : “Checked”}) print(“n > The task was mark as done successfully!”) break else: print(“n > Please only enter the index of existed tasks”) except ValueError: print(“n > Please enter an index(of the task) only”) elif option == 4: if len(toDoList) == 0: print(“n > The To Do List is currently. There is nothing to display”) else: print(“nTO DO LIST”) print(“==========”) for i, x in enumerate(toDoList): print(f”{i+1}.{x.get(“task”)} : {x.get(“status”)}”) elif option == 0: break else: print(“n > Please enter a valid option(0/1/2/3/4)”) except ValueError: print(“n > Please enter a valid option(0/1/2/3/4)”) submitted by /u/Yubion [link] [comments] 

So basically I have created my first python program which is a To Do List maker app. Any ideas of the project I should start making to learn?

Here is the source code of my app(in case you’re wondering what I have learned already):

print("nWELCOME TO THE DO LIST MAKER PROGRAM") print("---------- Made in Python ----------") toDoList = [] while True: try: print("nOptions") print("=======") print("1.Add a task to the list") print("2.Remove a task from the list") print("3.Mark a task as done from the list") print("4.Show the list") print("0.Exit the programn") option = int(input("Enter an option(0/1/2/3/4): ")) if 0 <= option <= 4: if option == 1: newTask = input("nEnter a task to add to the list(Enter 0 to Cancel): ") if newTask == "0": continue else: toDoList.append({"task" : newTask, "status" : "Unchecked"}) print("n > The task was added to the list successfully!") elif option == 2: while True: try: if len(toDoList) == 0: print("n > The To Do List is currently. There is nothing to remove") else: removeTask = int(input("nEnter the index of the task to remove from the list(Enter 0 to Cancel): ")) if removeTask == 0: print("n > The operation was aborted successfully!") break elif 0 < removeTask <= len(toDoList): toDoList.pop(removeTask-1) print("n > The task was removed from the list successfully!") break else: print("n > Please only enter the index of existed tasks") except ValueError: print("n > Please enter an index(of the task) only") elif option == 3: while True: try: if len(toDoList) == 0: print("n > The To Do List is currently. There is no task to mark as done") else: checkStatus = int(input("nEnter the index of the task to mark as done(Enter 0 to Cancel): ")) if checkStatus == 0: print("n > The operation was aborted successfully!") break elif 0 < checkStatus <= len(toDoList): toDoList[checkStatus-1].update({"status" : "Checked"}) print("n > The task was mark as done successfully!") break else: print("n > Please only enter the index of existed tasks") except ValueError: print("n > Please enter an index(of the task) only") elif option == 4: if len(toDoList) == 0: print("n > The To Do List is currently. There is nothing to display") else: print("nTO DO LIST") print("==========") for i, x in enumerate(toDoList): print(f"{i+1}.{x.get("task")} : {x.get("status")}") elif option == 0: break else: print("n > Please enter a valid option(0/1/2/3/4)") except ValueError: print("n > Please enter a valid option(0/1/2/3/4)") 

submitted by /u/Yubion
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *