• Premanand S

01 Python - An Introduction to the renowned language that the world is in need!

Hello, learners! Excellent day to everyone; I hope everyone is in good health in this scenario; it's one of the most important things everyone needs. In the next days, I want to create a brief series on the Python programming language. So, I'm starting this blog from the ground up regarding the Python programming language.


Table of Content:

  1. Introduction to Python language

  2. Importance of Python language

  3. How Python works and its architecture?

  4. Version difference

  5. Python – Future

  6. Fun facts about Python

  7. How to download Python language?

  8. Conclusion

Introduction to Python language:

We've all heard about the Python language's popularity in recent years as a result of Data Science. Here is a brief introduction to the popular Python programming language.



  1. Python is called after Monty Python's Flying Circus, a popular 1970s television show. And it was started in 1991 by Guido Van Rossum.

  2. Python is a general-purpose programming language that may be used in a variety of applications other than data science. It can be used for game development, web development, data visualization, and even SEO (Search Engine Optimization) and in certain programming applications.

  3. Python is categorized as a high-level programming language, which implies that it is comprehensible by humans.

  4. The Python language is dynamically typed because it does type-checking at runtime, whereas many other languages do not.


Importance of Python language:

The immense popularity of the Python language has some important features when compared to other popular languages,

  1. Python programming language works well in all platforms such as Windows, Linux, and macOS

  2. The syntax of Python is pretty much similar to the English language that we communicate. Those who know about this language they might be knowing this fact for others you will be knowing it while the course of learning.

  3. In Python, usage of coding is few when compared to other languages, the reason for this is the usage of libraries and communities.

  4. Unlike other programming languages, we have parentheses or brackets to end the command, here in python new line means the end of the command.

  5. Python is an interpreter language which means we actually run another program that is responsible for reading our source code and running it top to bottom. In Python, this “another program” we just referred to is called an Interpreter. Simply put, an Interpreter is a kind of program that executes other programs.

  6. The extension file of python are either .py or .ipynb format like .doc or .docx for MS word.


How Python works and its architecture?

Perhaps some of them believe Python is the easiest language to learn, but they have no idea how the Python language works! In this article, we will look at how Python works internally and why it is referred to be an interpreter language.

In general, Python works (internally) in four steps, and the interpretation is simple as the name suggests, Read, Evaluate, Print and Loop (REPL),


The first phase, as shown in the diagram, is LEXER, which splits the line of code into tokens, which are identifiers, keywords, literals, operators, and delimiters that are present in the code. The second stage is for PARSER to utilize these tokens to construct an Abstract Syntax Tree structure, which depicts the link between these tokens (AST). The compiler then converts the AST to a code object, and the interpreter finally executes each object.


Version difference:

In Python programming language, there are two main versions, Python 2.x and Python 3.x, later part is the existing one and many are following while Python 2.x exists till early 2000. The latest update is Python 3.10. Python 2 has been the most popular version for over a decade, However, since more companies are moving from Python 2 to 3. The advanced version is widely utilized around the globe. Python 3 is the future, many of today’s developers are creating libraries strictly for use with Python 3. Similarly, many older libraries built for Python 2 are not forwards-compatible. In Python 3, text strings are Unicode by default. In Python 2, strings are stored as ASCII. This is important because Unicode is more versatile than ASCII. Unicode strings can store foreign language letters, Roman letters, and numerals, symbols, emojis, etc., offering you more choices. In Python 2, if you write a number without any digits after the decimal point, it rounds your calculation down to the nearest whole number. For example, if you’re trying to perform the calculation 5 divided by 2, and you type 5 / 2, the result will be 2 due to rounding. You would have to write it as 5.0 / 2.0 to get the exact answer of 2.5. However, in Python 3, the expression 5 / 2 will return the expected result of 2.5 without having to worry about adding those extra zeroes. This is one example of how Python 3 syntax can be more intuitive.


Python – Future

We all know the latest version of Python, it's Python 3.10. It's not stopping with this, the community has some updates or news like,


So it is evident that the Python community has updated till 2029. Here in the Python community update which is very similar to our smartphone, each update has some improvement which makes Python programming more robust.


Fun Facts – Python:

Till now we have seen some interesting technical parts of Python programming, so here in this topic, we will see some fun side,

  1. What do we do in our leisure time? Will do cooking, hearing songs, dancing or reading books or will take our bike and visit some new places right or else will sleep nicely? But you know what Guido Van Rossum did? he started writing a new scripting language for making him engaged during Christmas time and called as Python later.

  2. Most of them understand Python as a snake, if they don’t know it as a Programming language but there is an interesting fact about its naming too, during 1970s time there is a famous show called Monty Python’s Flying Circus and Guido is an ardent fan for this show, so after finished writing script language he named it like Python, fanboy moment isn’t it?

  3. There are also some statistics it shows, Python overtook French to be the most popular language taught in primary schools. Out of 10, 6 parents preferred their children to learn Python over French, in UK, 2015.

  4. There are different flavors of python like vanilla, strawberry, mango, butterscotch ice creams, looks interesting right, Guido is so unique in developing python as universal by CPython Written in C, Jython- written in Java, compiles, IronPython- Implemented in C#, Brython- Browser Python, runs in the browser, RubyPython- Bridge between Python and Ruby interpreters, PyPy- Implemented in Python, MicroPython- for the microcontroller.

  5. Some tech biggies like NASA, Google, Facebook, quora, IBM, Amazon, Spotify are using Python as one of the programming languages for their products, and that’s the power of python

  6. In Python, you can assign the same value to multiple variables in a single statement, maybe you can say it's normal but who knows multiple languages will understand the importance.



7 When you type import antigravity, it opens up a webpage with a comic about the antigravity module.


8 Tim Peter is a software engineer, who done a major contribution to the Python community. If you type import this in Python IDE or script files, you will see some poetry or philosophical stuff related to Python. That’s incredible if you read that phrases. That’s called technology love.



How to download Python language?

You can download Python from this website link, www.python.org, and in that find the download option, there you will find different platforms versions to download and install it. There is another alternate option, IDE which means Integrated Development Environment, a coding tool that allows you to write, test, and debug your code in an easier way



Conclusion:

So from the above article, we conclude that from this article we have seen some introduction about Python language, how it started, then how python works internally, what's the difference in the versions in python, Python communities plan for the future, some fun facts behind the python language and also how to download Python from the website. I hope I justified the article with some funfilled examples. If you find this article to be useful, please leave your thoughts/opinions in the comments area below. Learning from your mistakes is my favorite quote; if you find something incorrect, simply highlight it; I am eager to learn from learners like you. Will continue in the next article about the features, applications, and advantages & disadvantages of Python.


About me in short, I am Premanand.S, Assistant Professor Jr and a researcher in Machine Learning. Love to teach and love to learn new things in Data Science. Mail me for any doubt or mistake, er.anandprem@gmail.com, and my Linkedin https://www.linkedin.com/in/premsanand/

79 views0 comments

Recent Posts

See All