Python crash course (if you programmed in something else before) — Part 2

In the first post we covered the absolute basics: variables, lists, loops, range usage and simple functions. The goal there was to get from zero Python syntax to something you can actually run quickly.

This second part focuses on small Python syntax features that are extremely useful in everyday code. If you already programmed in another language, many of these will feel familiar conceptually, but Python often provides shorter or more expressive ways to write them.

These are the kinds of things that make Python code feel Pythonic.

Read more...