so I am still a newbie in the python world and started learning it yesterday, I am using Jupyter text editor with anaconda 3.
so I was exploring a website online on Opening a Jupyter Notebook and I came to a line where the website said :
Try typing the code below in the first cell in the notebook to the right of the In [ ]: prompt:
import this
Then click the run button in the middle of the menu at the top of the notebook.
they didn't explain what is this line and didn't even mention its output.
so I wrote this line in Jupyter :
import this
and when I run this command only, I got this strange output that looks like a poem to me:
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 guess that the import
keyword means to import a package, but what does the sentence import this
even mean and where does this strange output which looks like a poem comes from?