Tagged articles
2 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2021 · Fundamentals

Python File I/O: Reading and Writing Files

This article explains how Python interacts with the operating system to open, read, write, and close files using the built‑in open() function, various file modes, error handling, the with statement for automatic resource management, and considerations for binary data and character encodings.

encodingfile-ioreading
0 likes · 7 min read
Python File I/O: Reading and Writing Files
Python Programming Learning Circle
Python Programming Learning Circle
Dec 10, 2020 · Fundamentals

Using Python's with Statement for File Handling and Understanding Shell and split() Method

This article explains how to use Python's with statement to read files into a list for access outside the block, demonstrates printing file lines and extracting shells, describes the purpose of rstrip(), outlines interactive versus non‑interactive shells, and introduces Python's split() method for string slicing.

file-handlingfundamentalssplit
0 likes · 4 min read
Using Python's with Statement for File Handling and Understanding Shell and split() Method