Monday, November 18, 2024
Google search engine
HomeLanguagesUnknown facts about Python

Unknown facts about Python

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

  1. Origin of python

  2. 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.

  3. 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.

  4. The Zen of Python
    Tim Peters, a major contributor to the Python community, wrote this poem 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 
    import this 

    
    

    Output:

    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!
    

  5. 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.

  6. 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.

  7. Does not require braces
    Unlike Java and C++, Python does not use braces to delimit code. Indentation is mandatory with Python, which keep tracks of the code.

  8. 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.

  9. 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.

  10. Influence of python in JavaScript
    Python is one of the 9 languages that influenced the design of JavaScript. Others include AWK, C, HyperTalk, Java, Lua, Perl, Scheme, and Self.

  11. 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

Note: To know more about python click here.

Dominic Rubhabha-Wardslaus
Dominic Rubhabha-Wardslaushttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Recent Comments