From 7cf7e1be7029e3abf4be6de46b2fca31e464a8db Mon Sep 17 00:00:00 2001 From: Seema Patel Date: Sun, 6 Oct 2024 19:09:38 +0530 Subject: [PATCH 1/2] todolist.py --- python/todolist.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 python/todolist.py diff --git a/python/todolist.py b/python/todolist.py new file mode 100644 index 00000000..12e5ec8f --- /dev/null +++ b/python/todolist.py @@ -0,0 +1,44 @@ +def main(): + tasks = [] + + while True: + print("\n===== To-Do List =====") + print("1. Add Task") + print("2. Show Tasks") + print("3. Mark Task as Done") + print("4. Exit") + + choice = input("Enter your choice: ") + + if choice == '1': + print() + n_tasks = int(input("How may task you want to add: ")) + + for i in range(n_tasks): + task = input("Enter the task: ") + tasks.append({"task": task, "done": False}) + print("Task added!") + + elif choice == '2': + print("\nTasks:") + for index, task in enumerate(tasks): + status = "Done" if task["done"] else "Not Done" + print(f"{index + 1}. {task['task']} - {status}") + + elif choice == '3': + task_index = int(input("Enter the task number to mark as done: ")) - 1 + if 0 <= task_index < len(tasks): + tasks[task_index]["done"] = True + print("Task marked as done!") + else: + print("Invalid task number.") + + elif choice == '4': + print("Exiting the To-Do List.") + break + + else: + print("Invalid choice. Please try again.") + +if __name__ == "__main__": + main() \ No newline at end of file From 327d6e4be1eabd6de6b4639ed2998fb3a1c0d58f Mon Sep 17 00:00:00 2001 From: Seema Patel Date: Sun, 6 Oct 2024 19:13:44 +0530 Subject: [PATCH 2/2] data.json --- data.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data.json b/data.json index 28ce1def..bee41d0d 100644 --- a/data.json +++ b/data.json @@ -2086,6 +2086,16 @@ ], "description": "An extension framework to Legerity for speeding up the development of automated UI tests for Uno Platform applications with Appium/Selenium on .NET." }, + { + "name": "seemapatl", + "link": " https://github.com/seemaPatl/awesome-for-beginners/pull/new/seemapatel.24", + "label": "contribution-starter", + "technologies": [ + "Python" + ], + "description": "A simple to do list maintainer" + } + , { "name": "Exosphere", "link": "https://gitlab.com/exosphere/exosphere/-/issues/?label_name[]=Good%20First%20Issue",