In this course, you covered how to write more Pythonic code.
Whether you’re coming from another programming language or Python is your first, you should now have a foundation for understanding and applying idiomatic practices within Python.
In this course, you covered:
- 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
For more articles and courses on this topic, check out How to Write Pythonic Loops, Writing Beautiful Pythonic Code With PEP 8, and other resources in the Write More Pythonic Code Learning Path.
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
alexisjawtu on Nov. 14, 2021
I disagree with the uniform recommendation of using always the highest level.
Idioms imply a potentially huge danger, to leave us as mere client developers (like Bruce Eckel said) for ever.
A computer scientist should be able to research for a certain algorithm to solve a problem. Would Project Euler by any fun if we solved the problems by invoking the precise module just written by that lucky guy who made it to a core developer?