Python is a powerful general-purpose programming language which is very easy to learn and then master. Python syntax is very human-like and easy to remember. In-spite of easy learning python is very useful and it is the most popular programming language now. Python is used in web development, building softwares, data science, and so on.
The Zen of Python
From the PEP 20 — 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.
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!
In Python command:
In python console type
Writing your own first program
Now you know the python zen let’s write your first python program and type something. It has become a convention to introduce a programming language by demonstrating the “Hello, world” program. (for Python 3)
So here we see python spits back what is given in the parenthesis after print command.
Learn Math in Python
Most of the mathematical operators are the same in python like ones in math classes.
Here we can see we use python print function to get the results of mathematical operation. And we can print multiple elements at the same time.
This ends the first tutorial on learn python. If you are interested visit this category