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.
Opening a URL with Different Browsers in Python: Complete Web Browser Automation and Control Guide
I needed this for a testing script — I wanted to open the same URL in Chrome, Firefox,…
Encoding and Decoding Base64 in Python: Complete Binary-to-Text Encoding Implementation Guide
The first time I needed base64 seriously was embedding a small image directly inside an HTML file so…
Disassembling Modules in Python: Complete Bytecode Analysis and Reverse Engineering Guide
I got curious about this after wondering why one version of a function I wrote ran noticeably faster…
Random Binary Decision in Python: Complete Random Choice and Decision Making Implementation Guide
I first needed a genuine “coin flip” in code while building a simple A/B testing harness — half…
Create Cryptographically Secure Random Numbers in Python: Complete Secrets and Random Module Guide
I learned this lesson the hard way while reviewing an old script of mine that generated “random” API…
Creating a Random User Password in Python: Complete Secure Password Generation Implementation Guide
I built my first password generator for a personal project years ago, using random.choice() on a string of…
Combinations Method in Itertools Module in Python: Complete Combinatorics and Permutations Guide
When I first started working with data processing tasks that involved picking subsets of elements from a larger…
The OS Module in Python: Complete Operating System Interface and File System Operations Guide
I still remember the first automation script I wrote that actually saved me real time at work —…
Getting the Values from the Database and Error Handling in Python: Complete Database Programming Guide
The first time I connected Python to a real production database, I made every mistake in the book…
SQLite3 – Not Require Separate Server Process in Python: Complete Lightweight Database Implementation Guide
I’ve built plenty of small tools and prototypes over the years where spinning up a full PostgreSQL or…