-
Notifications
You must be signed in to change notification settings - Fork 114
Labels
enhancementNew feature or requestNew feature or requestgssoc25hacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Issue Description
I would like to request the addition of a new chapter titled "File Input and Output (I/O) in Python" to the Python section of the documentation. This is a fundamental concept for beginners learning Python and would be a great enhancement to the existing topics.
Suggested Change
Suggested topics to include:
- Opening a file using
open()
- Reading from a file using
read()
,readline()
,readlines()
- Writing to a file using
write()
andwritelines()
- File modes (
r
,w
,a
,rb
,wb
, etc.) - Using
with
statement for safe file handling - Closing a file
- Basic file error handling
- Simple examples for reading/writing text files
Rationale
File Input/Output is an essential part of real-world Python programming. Many beginners and intermediate learners need to understand how to work with files for tasks such as data handling, logging, config management, etc.
Adding this chapter will:
- Make the documentation more complete.
- Help beginners grasp one of the most used functionalities in Python.
- Align with standard Python learning paths.
This issue can be tagged with:
documentation
hacktoberfest
Urgency
High
Record
- I have read the Contributing Guidelines
- Are you a GSSOC'25 contributor
- I want to work on this issue
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgssoc25hacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Type
Projects
Status
Done