Anyone Can Code.
Python is one of the fastest growing languages today. That's why you're here to learn it! This section isn't necessary for you to learn how to code in Python, so you can skip it if you want. However, if you want a little background information on Python keep reading!
Python is a programming language, released in 1991, that is used for web development, software, development, mathematics, and is also a starting language for most aspiring programmers. It is easy to learn as its syntax is similar to the English language and it has massive support for learners on the internet.
In Python, there is an easter egg created by Tim Peters called The Zen of Python which is a module in Python, which when imported, displays 19 lines talking about the basic principles of Python. Let's take a look:
import this
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!
What are the major takeaways from this cool trick? Python was created to make it easier to write code. Even though it is slower than other programming languages, such as C++, Python is much more user friendly and its syntax is very simple and clean. Python code is very simple and clear, which makes it easy to write code in as well as read others' code. While learning Python, the syntax won't be as complicated as the logic. That's why we have tried to explain all the concepts in the easiest manner possible!
To create your first Python program, you will make use of the print()
function
print('Hello World') #this prints the statement 'Hello World'
Hello World
That's it for this tutorial! Click Next to access the next tutorial!
This site uses cookies to improve your experience as well as for site metrics. To see more, check out our Privacy Policy