Conditionals, loops, match/case, flow modifiers.
A new vectorized approach to slicing string arrays in NumPy, shown to be up to 25x faster!
Jul 2, 2025
•
6 min read
This feature, used in Python 3.10+, is an alternative to if/elif/else blocks. See how case and match statements are used.
Jun 4, 2025
5 min read
There's a major difference between for and while loops, and this explanation hits the key difference.
Mar 12, 2025
How catching every exception with ‘except’ in Python can break your code and hide critical errors.
Jan 22, 2025
Practical tips to speed up your Python code and make your loops more efficient.
Sep 25, 2024
9 min read
This is a control flow tool you should've learned yesterday.
Aug 28, 2024
4 min read
Here's how you're able to use this and why sometimes it's more adventageous
Aug 22, 2024
Here's when you should use one over the other
Aug 14, 2024
7 min read
Here's how you can leverage Python's itertools library to be more efficient with your looping
Jul 17, 2024
Writing Cleaner, More Efficient Python Code with the Walrus Operator
Dec 20, 2023