7xGit / 7xGit/7xGit_Task4

Inconsistent file extension handling for .txt files

Open Beginner friendly
#4 0 comments 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
Python
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Description:
If a user forgets to add .txt while reading, deleting, or creating a file, the program may not behave as expected. This leads to errors or duplicate files.

_Hint: Think about how the program could handle input when users enter a file name with or without the .txt extension._

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for functions that read, delete, or create files, likely in the main script or a file handling module. The hint suggests normalizing file names to ensure .txt is appended when missing. Start by searching for file operations like open(), os.remove(), or os.path.exists(). Write a helper function to add .txt if absent, then apply it consistently. Test by running the program with and without the extension.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.