Giter Site home page Giter Site logo

task-manager-app's Introduction

"# Task-manager-App" This Repo contains a Python code which defines a simple task manager program that allows users to add tasks, view all tasks, mark tasks as completed, and exit the program. Let's break down the code:

Add_task(tasks): This function prompts the user to enter the name of a task, appends the task to the tasks list as a dictionary with keys "name" and "completed", and sets "completed" to False by default. 2.view_tasks(tasks): This function displays all tasks stored in the tasks list. It iterates through the list and prints each task's name and its completion status ("Completed" or "Incomplete"). mark_completed(tasks): This function allows the user to mark a task as completed. It first calls the view_tasks() function to display all tasks, prompts the user to enter the index of the task they want to mark as completed, and updates the "completed" key of the corresponding task dictionary to True. main(): This is the main function of the program. It initializes an empty list tasks to store tasks. Inside a while True loop, it presents a menu to the user with options to add a task, view tasks, mark a task as completed, or exit the program. Depending on the user's choice, it calls the appropriate function. if name == "main": This conditional statement ensures that the main() function is executed only if the script is run as the main program (not imported as a module into another script). Overall, this script provides a basic command-line interface for managing tasks. Users can add tasks, view existing tasks, mark tasks as completed, and exit the program.

task-manager-app's People

Contributors

jidris-spec avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.