Just a reminder: Registration for the advanced (B2) cohort of Weekly Python Exercise, which will begin on July 2nd, will remain open for the next two weeks. BUT early-bird pricing ($80 for 15 weeks of Python exercises, solutions, and community) ends today — Tuesday, June 18th. If you want to sharpen your Python skills, then…
Here’s a quick question I often ask students in my Python classes: >>> x = 100 >>> y = x >>> x = 200 After executing the above code, what is the value of y? The answer: >>> print(y)100 Many of my students, especially those with a background in C, are surprised. Didn’t we say…
This is just a quick reminder that if you want to join the advanced cohort of Weekly Python Exercise starting July 2nd, you should do it by tomorrow (Tuesday, June 18th). Don’t miss this opportunity to improve your Python coding skills! We’ll be talking about iterators, generators, decorators, threads, and functional programming, and helping you…
I’m a firm believer in improving your Python fluency via practice, practice, and more practice. “Python Workout” is a collection of my 50 favorite exercises from my 20 years of on-site Python training at some of the world’s largest and best-known companies. I’m delighted to announce that “Python Workout,” my book with 50 exercises to…
I teach about 10 different courses to companies around the world, but my favorite remains “Python for non-programmers.” Participants in this course are typically network and system administrators, support engineers, and managers who want to learn some programming skills, but don’t see themselves as programmers. Moreover, many of them took a programming course back when…
It’s time for another cohort of Weekly Python Exercise! This time, it’s an advanced cohort with 15 weeks of practice in such subjects as functional programming, object-oriented programming, iterators, generators, and decorators. Early-bird pricing ends in just one week, on June 18th! Learn more, and get a sample, at https://WeeklyPythonExercise.com/.
Do you use Python, but sometimes feel stuck? Do you visit Stack Overflow every time you want to solve a problem? Do you wish that you understood how to use advanced techniques, such as generators and decorators, better? If so, then good news: I’m opening a new cohort of Weekly Python Exercise, specifically aimed at…
Bottom line: Use sys.getsizeof to measure a dict’s memory: an empty dictionary takes 240 bytes, because it starts with eight slots ready for key-value pairs. That number reflects the structure, not the data, so it stays at 240 no matter how big your values are, growing in jumps only as you add more pairs. Let’s…