Good news: My book, “Python Workout,” is almost done; I’m working on the videos and final edits, and it’ll soon be available in its final form from Manning, both online and in print. Better news: “Python Workout” is today’s “Deal of the Day,” along with two other Python books: “Data ...
Have you ever wondered about bitwise operations in Python? They’re not that common nowadays, but they are still in the language, and can be useful in some cases. A subscriber to my “Better developers” newsletter asked me to explain these. I made a video doing so: Here’s the Jupyter notebook ...
My free, weekly “Python for non-programmers” course continues! Our topic for today: Dictionaries, the most important data structure in Python. If you’ve always wanted to program, then it’s still not to late to join us. The course is completely free of charge, and gives you free access to the course ...
Consider the following (ridiculous) Python function: def myfunc(): return 1 return 2 return 3 I can define the function, and then run it. What do I get back? >>> myfunc() 1 Not surprisingly, I get 1 back. That’s because Python reaches that first “return” statement and returns 1. There’s no ...
The next session of my free, weekly, live “Python for non-programmers” course continues tomorrow, on May 8th. You can sign up at https://PythonForNonProgrammers.com/. More than 1,700 people from around the world have already joined! This week’s topics are: Turning strings into lists (and vice versa)Tuples Anyone who joins gets access ...
A new cohort of Weekly Python Exercise A2 (“Functions for beginners”) starts tomorrow — Tuesday, May 5th. If you’ve been using Python for less than one year, and want to write better, more powerful, more idiomatic functions that do more with less code — then this is the course for ...