Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating todoapp.py #7421

Closed
wants to merge 1 commit into from
Closed

Updating todoapp.py #7421

wants to merge 1 commit into from

Conversation

da-ksh-esh
Copy link

### Changes in the Rewritten Code:

  1. Input Validation: Ensures that tasks cannot be empty or consist of only whitespace.
  2. Confirmation Dialog: When removing a task, the user is asked to confirm the removal.
  3. Persistence: Tasks are saved to a file (tasks.txt) and reloaded when the application starts.
  4. Code Cleanliness: Organized the code and added helpful comments.
  5. Task Management: After each operation (add/remove), the task list is saved to a file. This code provides a more user-friendly
    experience and preserves tasks between sessions.

Changes in the Rewritten Code:
Input Validation: Ensures that tasks cannot be empty or consist of only whitespace.
Confirmation Dialog: When removing a task, the user is asked to confirm the removal.
Persistence: Tasks are saved to a file (tasks.txt) and reloaded when the application starts.
Code Cleanliness: Organized the code and added helpful comments.
Task Management: After each operation (add/remove), the task list is saved to a file.
This code provides a more user-friendly experience and preserves tasks between sessions.
@da-ksh-esh
Copy link
Author

@da-ksh-esh Please Star ⭐️ the repo to earn 'hacktober-accepted' label for the event.

@da-ksh-esh da-ksh-esh closed this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant