Python is a widely-used general-purpose, high-level programming language. It was mainly developed for emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code. Python is a programming language that lets you work quickly and integrate systems more efficiently.
Here are some interesting facts about python
- Origin of python
- Logic behind its name
The language’s name isn’t about snakes, but about the popular British comedy troupe Monty Python. its creator named so because he was a big fan of Monty Python’s Flying Circus.
- The Zen of Python
Tim Peters, a major contributor to the Python community, wrote
thispoem to highlight the philosophies of Python which can be read by just writing import this in the interpreter.
# Try to guess the result before you actually run it
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!
- Python does not require a compiler
As a high-level and interpreted language, Python does not need a compiler. This is unlike Java and C++ which have to be compiled first before being interpreted. For Python, it relies on the application interpreter.
The Python byte code is stored in the form of a .pyc file which is then executed by an appropriate virtual machine. This machine acts as a run-time engine of Python.
- C and Java variants of python
Despite being an independent programming language, Python has variants for C and Java programming languages. The C variant is known as CPython and is designed to give Python the advantages of C. One of these characteristics is in terms of performance. The variant can act both as an interpreter and at the same time as a compiler.
The Java variant of Python is known as Jython. It brings some key aspects of Java such as productivity and enables them to run on a virtual machine.
- Does not require braces
Unlike Java and C++, Python does not use braces to delimit code. Indentation is mandatory with Python, which keep tracks f the code.
- It is an open-source language
Despite the massive popularity that enjoys, Python is an open-source language, It does not have a proprietary license that controls who uses it.
As an open-source language, members of the Python community are allowed to make their contributions to the Python ecosystem.
- It supports multiple assignments in one statement
Python allows assigning the same value to multiple variables in one statement. It will also let you assign values to multiple variables at once.
- Big Companies Using Python
Some of the big companies and institutions using python are:
NASA, Facebook, IBM, Google, Nokia, Netflix, Yahoo! Maps, Quora, Hike, Amazon, Youtube, Mozilla, Uber, Dropbox, Expedia
Python was developed a hobby project by Guido Van Rossum in December 1989, while he was looking for a hobby project to keep him occupied in the week around Christmas.
Note: To know more about python click here.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.