Browsing Category
Python
212 posts
Python is a general-purpose, high-level programming language. It is known for its elegant syntax and its focus on code readability. Python is dynamically typed, which means that the type of a variable is not declared at compile time. This can make Python code more concise and easier to read.
Writing to CSV from String or List in Python: Complete CSV File Handling and Data Export Guide
Exporting data to CSV feels trivial until you hit a value with a comma in it, or a…
Basic Method Overriding in Python: Complete Object-Oriented Programming Inheritance Tutorial
Method overriding was the concept that made object-oriented programming actually click for me. Before I understood it properly,…
Create and Build XML Documents in Python: Complete XML Generation and Parsing Implementation Guide
Long before JSON took over as the default data interchange format, XML was everywhere, and it still shows…
Scraping Using Selenium WebDriver in Python: Complete Web Automation and Data Extraction Guide
I reach for Selenium specifically when a website refuses to give up its data any other way —…
Scraping Using the Scrapy Framework in Python: Complete Web Crawling and Data Extraction Guide
There’s a point in almost every scraping project where a simple requests + BeautifulSoup script stops being enough…
Catching Exceptions in Python: Complete Try-Except Error Handling and Debugging Guide
I used to think good exception handling meant wrapping everything in a try/except Exception block and moving on.…
Performing a Shallow Copy in Python: Complete Object Copying and Memory Management Guide
I still remember the first time a shallow copy bug cost me an afternoon. I was building a…
Regular Expressions (Regex) in Python: Complete Pattern Matching and Text Processing Guide
I didn’t take regex seriously until I had to parse a few thousand log lines by hand, looking…
Computing Large Integer Roots in Python: Complete Mathematical Computation and Algorithm Guide
I ran into this problem while working on a cryptography side project, where I needed the exact integer…
Screenshot and Image Recognition in Python: Complete Automation and Computer Vision Implementation Guide
I got into this because I wanted to automate a repetitive task in a desktop app that had…