Transcript for:
Python To-Do List App Guide

so hey guys welcome to the new video today in this video we are going to see that how can you create a todo app using Python we will be uh using console for this that is our terminal in this video so we will open our VS code firstly then we have to select a folder using this one and then what you have to do is you have to create a file like uh to-do list uh just a second guys okay to-do list py py okay so now what you have to do is you have to create a tasks array which will contain all the task okay then what you have to do is you have to take the user input while true we will using a while loop for this one and these will be the statements we want our in our console that is first option will be show option that will show all the tasks in our in our project you can see in our to-do list then there is second option for adding task third is option for removing task and fourth is for exiting the terminal so we will also ask for user choice that uh what he wants to do if he chooses one then what you have to do is if choice double equals 1 then print tasks if task else you have No task present no task that's it now what you have to do is you have to iterate through this for I comma T N E N U M enumerate tasks one comma one then you have a print command for this quotation where you will print the value of I and T i do T okay so this was so this was the first oper if he chooses two and if choice double equals two then what you have to do is task equal Task equal input and then new task strip task has some value then what you have to do is you have to append this value task dot append and then this one okay now if he chooses three then what you have to do is you have to enumerate with I in T and then what you have to do is you have to get the index value from user that is this one then you have to pop this one and uh decrease the length of this so then uh if he chooses four that is break if choice ever equals four then you have to uh break the loop that is you have to exit from this program let's try running this one okay so if I want to add some task like this will be brushing so you can see that I have added a new task if I want to see all the tasks then you can see that I have task no u called as brushing if you want to remove this one you can also go with this remove task with ID1 okay so now let's uh check it again you can see that there are no tasks present that means all the operations are correctly working we can also check the fourth operation yeah this is also working so this was the simple to-do list using console in Python so yeah guys that's all for this video and I will see you next