Tagged articles
4 articles
Page 1 of 1
Data Party THU
Data Party THU
Aug 24, 2025 · Fundamentals

Why Does Python Do Things Differently? 9 Surprising Design Decisions Explained

This article explores nine common questions about Python’s design—from mandatory indentation and missing semicolons to the ellipsis literal, for‑else syntax, elif, the absence of a main() function, zero‑based indexing, the Global Interpreter Lock, and the difference between == and is—providing historical context, official explanations, and practical code examples.

ellipsisequality vs identityfor-else
0 likes · 10 min read
Why Does Python Do Things Differently? 9 Surprising Design Decisions Explained
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 28, 2025 · Fundamentals

How to Accurately Detect Palindromes in Python: Multiple Approaches Explained

This article walks through a Python community member's question about checking whether a number is a palindrome, presents the original flawed code, and then offers several correct implementations—including a for‑else solution, an all‑function check, and a slicing method—while explaining the underlying logic.

String Manipulationalgorithmfor-else
0 likes · 5 min read
How to Accurately Detect Palindromes in Python: Multiple Approaches Explained
Python Crawling & Data Mining
Python Crawling & Data Mining
Aug 23, 2022 · Fundamentals

Three Reliable Ways to Detect Palindromes in Python

This article tackles a basic Python problem—determining whether a positive integer is a palindrome—by analyzing the original flawed code and presenting three complete solutions: a for‑else approach, an all()‑based method, and a slice‑reversal technique, while also clarifying how the for‑else statement operates.

Code ExamplesString Manipulationfor-else
0 likes · 5 min read
Three Reliable Ways to Detect Palindromes in Python