Python Strings: F-Strings, Methods and the strip() Trap
Python strings in practice: f-strings, slicing, the methods worth memorising, why += loops slow down, and the encoding default that breaks scripts on Windows.
Search
9 articles matched your search.
Python strings in practice: f-strings, slicing, the methods worth memorising, why += loops slow down, and the encoding default that breaks scripts on Windows.
Exception handling in Python done properly: try, except, else and finally, custom exceptions, chaining and logging, and why a bare except can break Ctrl-C.
Python numeric data types explained: int, float, Decimal, Fraction and complex, why 0.1 + 0.2 is not 0.3, and how to handle money without rounding errors.
Advanced Python regex with tested output: named groups, lookarounds, re.sub with a function, and why a 24-character input made (a+)+$ run for 10 seconds.
Iterators and generators in Python explained: yield, pipelines that stream big files in flat memory, itertools, and why a generator silently runs only once.
AI vs machine learning vs deep learning, plus data science: how the four terms nest, one problem solved four ways, and when deep learning is worth using.
NumPy broadcasting explained: the two shape rules, why a (3,1) and a (4,) array give (3,4), and the silent bug that turns a vector sum into a matrix.
A nine-month full stack developer roadmap: an exit test for every stage, free official docs, portfolio projects that stand out and how hiring really screens.
Programming for data science: how much SQL and Python you need, what reproducible code looks like, the notebook traps, and where AI assistants help or hurt.