Writing Idiomatic Python (Overview)
What programming idioms are unique to Python? This course is both a short overview for people coming from other languages as well as an introduction for programming beginners to the idiomatic practices within Python.
In this course, you’ll learn:
- How to access and interpret The Zen of Python
- How to set up a script
- How to test truth values
- How to swap variables in-place
- How to create Pythonic
for
loops
00:00
Hello and welcome to this course that is an introduction to idiomatic Python. Now, you might have heard the word Pythonic around when people talk or write about Python code. Idiomatic Python and the phrase Pythonic essentially mean the same, which is that you’re writing Python in the way that the language was intended to be written. There’s a lot to cover here and this course is just going to scratch the surface to give you a quick introduction, but you’re still going to cover a couple of topics. Specifically, you will learn about The Zen of Python, about how to set up your scripts, and about statements in Python. You will learn about Pythonic truth value testing, about using built-in functions and methods, about how to swap variables in-place, how to use dictionary default values, how to apply the Don’t Repeat Yourself principle in Python, and also how to write idiomatic for
loops in Python. All right, let’s get started!
Become a Member to join the conversation.