iAmG-r00t / alx-higher_level_programming

The Zen of Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

img

Zen (Python)

Not sure if C has taught me to think like a programmer or python is just really easy.

The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

I thought I had escaped betty, but here we have PEP8

Install Python3, pip3 and pycodestyle
  • Pycodestyle is now the new standard of Python style code.
$ sudo apt-get install python3 python3-pip
$ pip install pycodestyle
  • Confirm you have the right version.
$ pycodestyle --version
$

About

Resource


  • 0x00 : Hello, World.
  • 0x01 : if/else, loops, functions.
  • 0x02 : import & modules.
  • 0x03 : Data Structures: Lists, Tuples.
  • 0x0D : SQL - Introduction.
  • 0x0E : SQL - More queries.
  • 0x10 : Python - Network #0.
  • 0x11 : Python - Network #1.

About

The Zen of Python


Languages

Language:Python 76.9%Language:C 17.1%Language:Shell 6.0%