// blog

Articles

// Data Structures
Comprehensions Mini Project — Even Numbers

What you're building
The even numbers filter is back. Same input, same output — but the function is now one line.
This is what comprehensions are for: replacing a loop-and…

06 May 2026 1 min read files [1] comments [0] 17 views
// Data Structures
Files: Where Your Data Lives After the Program Stops

The problem...
Every program you've written so far has the same limitation.
You run it. You enter data. It processes. It prints.
Then you close it — and everything is gon…

06 May 2026 3 min read files [0] comments [0] 17 views
// Data Structures
How Python Reads a File

The idea
You have a file on your computer. Python needs to find it, open it, and read what's inside.
Three methods. One pattern. All the same with open() block.
Where to put yo…

06 May 2026 2 min read files [2] comments [0] 18 views
// Data Structures
Write, Overwrite, Append: How Python Handles File Output

The idea
Reading gets data out of a file. Writing puts data in.
Python gives you two distinct modes for this — and the difference between them matters.
write() — cr…

06 May 2026 2 min read files [1] comments [0] 18 views
// Data Structures
CSV Files: Structured Data in Plain Text

The idea
A CSV file is a text file where each line is a row and each value is separated by a comma.
That's it. No special format, no proprietary software. Just commas and newlin…

06 May 2026 2 min read files [2] comments [0] 18 views
// Data Structures
File Handling Mini Project — Daily Notes

What you're building
A daily notes logger. The user writes a note. It gets saved — with a timestamp — to a text file. Every note appends to the same file. Nothing is …

06 May 2026 2 min read files [1] comments [0] 17 views