From the course: Python Theory for Network Engineers
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Zen of Python - Python Tutorial
From the course: Python Theory for Network Engineers
Zen of Python
- A few lessons ago we discussed Python's emphasis on readability and simplicity. In this section, in this short section, let's briefly go over The Zen of Python, or the guiding principle behind the Python programming language. This is somewhat of a Easter egg. If we open up the Python repo, and type in, import this, we'll see this aphorism about Python, titled, The Zen of Python. I have pasted them here and wanted to highlight some of my favorite ones. I believe it is important to know them, even as a beginner, so we could establish some good habits right from the beginning as we learn Python. So the first one, is explicit is better than implicit. It means that we should try to make the code more verbose and explicit, and not try to high functionality, or assume other colleagues know what we have in mind. So we always try to be explicit without overdoing it, of course. Of course, simple is better than complex.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.