Category Archives for "Python"

It’s Friday — time for another free “Python for non-programmers” session!

My free, weekly “Python for non-programmers” course continues! Today, we’ll start to talk about “strings” — in other words, text! Letters, words, sentences, and anything else contains text is a string in Python.

Join me for the live session, and get access to all previous recordings, Jupyter notebooks, and our private forum, by registering at It’s totally free of charge to join.

If you’ve always wanted to learn to program, then this is your chance. I hope that you’ll join me and hundreds of others in learning Python.

I look forward to seeing you in the course! Any questions? Just contact me at or on Twitter as @reuvenmlerner.

Reminder: My free “Python for non-programmers” course continues tomorrow!

If you’ve never programmed a computer before — or if you tried, and found it frustrating and difficult — then you’re welcome to join my “Python for non-programmers” course, which takes place on Thursdays at 10 a.m. Eastern.

The class is 100% free of charge, and open to anyone who wants. Just register at Registering gets you weekly reminders, recordings of previous sessions, and invites to the private forum, where you can chat about the lessons with other students.

And it’s a live class, so you can ask questions during the session, and get an immediate answer from me.

(So yes, this means that if you’re only joining now, you can catch up. And if you miss this or any other lesson, you can access the recording down the line.)

Stay home and stay safe — but while you’re home, take advantage of the opportunity to learn Python! I guarantee that you’ll enjoy it. (And at this price, why not give it a whirl?)

Once again, you can register at

Reminder: “Python for non-programmers” continues tomorrow

This is just a reminder that my 100% free, weekly “Python for non-programmers” course is continuing tomorrow (Friday, March 27th) at 10 am Eastern. Join me for live discussion, coding, and Q&A as we march (slowly) through the Python language.

Sounds interesting? Sign up at !

We’ll be talking about making decisions with the “if” statement — one of the most common, but also important, parts of programming!

Signing up gives you reminders before each session, access to previous recordings, and access to our exclusive forum, where you’ll get homework questions, and be a part of our growing community of people who want to learn Python.

I hope to see you there. Questions or comments? Just contact me at, or on Twitter as @reuvenmlerner

Announcing: Three new advanced Python courses (and one free course for absolute beginners)

If you’ve been using Python for a while, and want to up your game, then I’ve got great news for you: I have released three new advanced Python courses, all available immediately from my online store:

Advanced Python data structures

This 5-hour course assumes that you’re familiar and comfortable with strings, lists, tuples, and dicts, and takes you to the next level. First, we review the built-in data structures, going deeper into understanding how they work, their relative efficiencies, and some more advanced techniques for working with them. Then we look at combinations of these data structures, and the trade-offs associated with such multi-level collections. Finally, we look at some the interesting data structures provided in Python’s standard library. Available at

Advanced Python functions

This 3.5-hour course assumes that you are familiar and comfortable with the basic writing and usage of functions, and want to go deeper. First, we talk about function objects and byte codes, and how Python creates them. Then we talk about Python’s various scopes, including nested functions — and some of the ways in which they can be useful. Finally, we talk about such topics as stack frames and type annotations. Available at

Advanced Python objects

Finally, this 7-hour course discusses Python objects in great depth. First, I introduce a number of the “magic” methods that you can implement on your objects.  Then we discuss such topics as context managers, multiple inheritance, properties, descriptors, and even metaclasses. If you’ve always wanted to learn about how Python objects work, and how you can use them to your advantage, this course is for you. Available at .

Python for non-programmers

is my 100% free, live, weekly course. Every Friday at 10 a.m. Eastern, I introduce you to the world of programming using Python. Anyone who signs up (for free) gets invited to the weekly Zoom session, as well as access to all of the videos (as they’re recorded) and Jupyter notebooks I use when teaching. If you’re new to programming, then I invite you to join me — and if you have friends, family, or colleagues who might be interested, please tell them! SIgnup is at .

Affected by the coronavirus?

I’ve long tried to make my courses as affordable as possible, giving discounts to students, seniors/pensioners/retirees, and people who live outside of the world’s 30 richest countries.

Today, I’m announcing a new discount code, for people whose job and/or finances have been disrupted by the coronavirus, covid-19, and the many types of pain that it is generating.  If you have been affected adversely by this crisis, and are interested in purchasing my courses, please e-mail me, at (You should also contact me if you’re eligible for any of the other discounts.) I’ll reply with an appropriate coupon code.


Just contact me via e-mail ( or as @reuvenmlerner on Twitter!

Announcing: Free, weekly “Python for non-programmers” workshop

This is a tough time for the world. Wherever you live, you have likely been affected by covid-19, the coronavirus that has been making its way to every country, city, and town.

Many countries, companies, and individuals are now restricted to their homes.  This can be frustrating in many ways.  Moreover, I’m not alone in believing that we’re about to see some very troubled times for the world economy.

I’ve been trying to decide what I can do, as a Python instructor, to help people in these trying times.  And after some thought, I’ve decided to offer a free, weekly live workshop for people with little or no Python programming experience

This workshop will be run as a live Zoom session on Fridays, with me teaching Python programming from the ground up.  This is similar to the “Python for non-programmers” course that I’ve been giving to Fortune 500 companies for the last few years — although it’ll be broken up over many weeks, and will hopefully have many more participants than I’ve ever had before.

This is an experiment, and I’m asking for your help in letting people know about it. If you, or someone you know, wants to spend an hour a week learning programming basics, then I invite you to join me in my “Python for non-programmers” workshop. 

I’ll ask questions, I’ll give exercises, and I’ll take questions. And I’ll tell lots of bad jokes, too. But in the end, I hope that you’ll learn, gain some skills, and have some fun not thinking about the news.

Not only will this workshop be completely free of charge, but I’ll be sharing each week’s recordings, as well. So if you cannot attend, or if you want to catch up on old videos, or even check out the Jupyter notebooks I use in each class, then don’t worry — all of that will be available to you, for as long as you want.

Sounds good?  I sure hope so!  You can join here:

Join my free, weekly “Python for non-programmers” workshop

When you join, I’ll send a welcome message.  And then I’ll send you connection instructions on Wednesday or Thursday.

Questions? Just contact me, via e-mail ( or on Twitter (@reuvenmlerner).

Last chance to level up your skills with Weekly Python Exercise B1 (advanced topics 1)

If you’ve been using Python for a while, then you know that it’s easy to learn — and even fun to use. But you probably also find yourself stuck on occasion, frustrated that the ideas and techniques don’t flow more easily.

The only solution to that problem is practice. And in Weekly Python Exercise, you get that practice — 15 weeks of exercises, accompanied by “pytest” tests, a private discussion forum, and monthly office hours.

The B1 (advanced topics, part 1) cohort starts tomorrow, March 10th. If you want to improve your skills with data structures, functional programming, classes, generators, decorators, and threads, then this is for you.

But don’t delay, because this is the last time I’ll be offering B1 in 2020.

Learn more, and sign up, at the Weekly Python Exercise B1 home page.

“Python Workout” is Manning’s “Deal of the Day”

I’m delighted to announce that my book, “Python Workout,” is Manning’s “Deal of the Day” for February 28th.

The book contains 50 complete exercises and solutions on all of the core aspects of Python — data structures, functions, comprehensions, objects, and iterators. It also has an additional 150 “beyond the exercise” problems to keep you thinking and practicing, even after you’ve completed an exercise.

One early reader said, “This is the best Python book I have ever reviewed and read in all my years working with Python. The challenges presented, the level of the programming, and the quality of the explanations by Reuven make this book a true Python jewel, a must have book in my Python library!”

The book is going through its final phases of editing and production. But you can already learn from it as a “MEAP” (Manning Early-Access Program) book online.

Get it for 50% off today, at! Just use the coupon code “dotd022820” at checkout.


Want to spend more time coding Python, and less time on Stack Overflow?

How many times a day do you visit Stack Overflow?  (If you’re like most programmers, the answer is “many.”)  Wouldn’t it be nice to just be able to write Python code, without interrupting your work every few hours to check (or double-check) something?

After all, whether you’re a data scientist, app developer, or just a hobbyist, your goal isn’t to search for answers to your problems. Your goal is to actually solve those problems.

Consider what would happen if you were able to use all of that search-for-answers time on actually solving problems:

  • You wouldn’t have to read bad and semi-bad answers before (finally) finding the right solution.
  • You wouldn’t have to mess with the answer you found, to make it appropriate for your situation.
  • You could take on bigger and more complex projects, because you’d be able to concentrate on the higher-level ideas and problems, doing the simpler stuff easily and quickly.
  • You would write shorter and more expressive code, impressing others and making future maintenance easier.
  • You would be able to delight your clients with faster turnaround time and more sophisticated solutions.

People are using Python for all sorts of amazing things nowadays. But you’re only able to do those amazing things when you’re solving problems, not when you’re dealing with the nuts and bolts, or searching for answers online:

  • Become a data scientist, contributing to everything from drug discovery to financial models to self-driving cars. (As you might know, Python is the leading language in data science and machine learning — so knowing it is the key to getting a job in this hot industry.)
  • Create Web applications, using Python-based frameworks such as Django and Flask, to create sites like Instagram, Pinterest, and Dropbox.
  • Automate your home or office on a Raspberry Pi, integrating systems such as temperature sensors to microcontrollers in a single program.
  • Use a single language to automate everything on your computer, instead of using such domain-specific languages as VBA and bash.

On March 10th, I’m starting a cohort of Weekly Python Exercise, my 15-week course specifically designed to improve your Python fluency.   (This is cohort B1, one of three advanced cohorts I offer each year.)

This cohort is aimed at anyone with at least 6-8 months of Python under their belt, who wants to go beyond basic data structures, function definitions, and objects — learning about and getting better at such topics as:

  • iterators
  • generators
  • decorators
  • advanced object-oriented techniques
  • threads and processes

Learn more, get a WPE trial, and sign up for Weekly Python Exercise B1

Questions or comments? Just contact me via e-mail ( or on Twitter (@reuvenmlerner)

Last chance for Weekly Python Exercise A1

This is a final reminder that in a few hours, registration will close for Weekly Python Exercise A1: Data structures for beginners.

Again and again, WPE participants have said that Weekly Python Exercise was the boost they needed to become more familiar with Python.

Now, if Python fluency is your goal, then that’s great.  But for most people, Python fluency isn’t the goal — it’s a means to an end.  And to what end?

  • With more fluent Python, you can spend time doing your job, rather than searching Stack Overflow and Google.
  • With more fluent Python, you’ll write tighter, more readable, code.
  • With more fluent Python, you’ll be able to solve bigger and more complex problems than before.
  • With more fluent Python, you’ll be able to interview for — and get — more senior Python development positions.

The $100 you spend for this 15-week course will more than pay for itself in future earnings.  But if you find that the price is out of reach, remember that I give discounts to students, seniors/pensioners/retirees, and anyone living outside of the world’s 30 richest countries.  If this applies to you, then just e-mail me, and I’ll gladly give you the appropriate coupon code.

But don’t delay, because the first exercise will soon be going out to subscribers!  And I won’t be offering WPE A1 again until 2021.

Click here to join Weekly Python Exercise A1: Data structures for beginners

Is Weekly Python Exercise for you?

In just a few days, I’ll be starting a new cohort of Weekly Python Exercise A1: Data structures for beginners. From my experience teaching Python for 20 years, I’d say that this is one of the best ways out there to improve your Python fluency. That’s because it combines actual practice, automated “pytest” tests, and community interactions.

But don’t believe me! Here’s what previous participants have said:

  • I was a total Python noob when I started.  I just wanted to learn the syntax, how to look at problems and find the solution. You provided both… your teaching is instrumental in drilling some concepts into our brains.
  • I learned a lot of features of the language and had a fun time doing it. I also got to apply what I learned when programming for work.
  • I expected to see Python in real world examples. I am not disappointed. During WPE, there were many examples, with a wide variety of programming blueprints.
  • The exercises are perfect for me because they are right in my “wheelhouse”. I have enough background knowledge that the context of the problems is relevant in my experience, yet I can’t just rattle off the solutions instantly.

So, WPE was right for them.  But is it right for you

  • If you have been using Python for less than one year, then WPE A1 will help you to understand how and when to use core data structures.
  • If you haven’t quite grasped when to use lists vs. tuples vs. dicts vs. sets, then WPE A1 will make this clearer.
  • If you feel like you’ll never remember or understand the many methods on core data structures, then WPE A1 will help you to understand and remember.
  • If you’re tired of going to Stack Overflow and Google multiple times each day, then WPE A1 will help.

But don’t take my word for it: You can sample WPE, taking you through two questions and answers to show you how it works.

Moreover: I’m running a free Webinar on Monday, and will be happy to answer your questions about Weekly Python Exercise, and how it works.  It’ll take place on Monday, at 17:00 Israel time; to convert it to your time zone, click here:

You’ll then be able to join me at the Webinar via the following link:

There are six different WPE classes; this is one of three beginner-level classes I’ll be running in 2020. But it’s the only time I’ll be running A1 — data structures for beginners. So if you want to improve your understanding of data structures, including how and when to use them, this is your chance!

Join WPE A1: Data structures for beginners

Remember: I offer discounts for students, seniors/retirees/pensioners, and anyone living outside of the world’s 30 richest countries. E-mail me at if you qualify, and I’ll send you a coupon code.

1 3 4 5 6 7 20