My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Before You Learn Python

Before You Learn Python

Abhiram's photo
Abhiram
·Jan 2, 2022·

2 min read

Hi there, This is Abhiram. I'm learning python for like 2 months. And now I want to express my thoughts on python in my own way. I know there are many tutorials and articles are available on the internet to learn python. But I want to explain it in my own way.

Let’s Get started.

Python was designed by GUIDO VAN ROSSUM. If you want to know about The story of python, I am linking down a video here

Before diving into Python, Let’s understand what exactly is python. In this context, not a snake🐍.

To simply put, Python is one of the many programming languages to communicate with the computer. Now, what exactly is even a programming language ??

  • Programming means a way to give instructions to the computers.
  • Now, what language does a computer can communicate it's not English or any other Human language, Computer can only understand Binary i.e. 0's and 1's.
  • Since a computer can only understand Binary, How do we communicate with them??
  • For that, Humans have developed Programming Languages. Those are Java, C, C++, Python, JavaScript, etc.

Now that we understood what programming languages are! let's understand how our code gets converted to Binary.

Before telling how code gets converted into Binary. Let me give you an example...

For suppose you are in a Business Meeting, and You have an International Client. And the client doesn't know English, the Client communicates only in Chinese. And you know only English. In that situation, we use someone called Translator who can speak both languages.

The Translator converts our speech to Chinese and Chinese to English

  • Likewise, there is a Translator which converts our code to Binary and that is another program developed by a human called Interpreter and Compiler.

Now, what are Interpreter and Compiler?

Interpreter is a program that goes Line by Line through our code and executes the code on the machine. While Compiler take code at all once and read the entire file and then translate it to Machine code.

Pure compiled languages such as C, C++, Rust, and Go.And that of interpreted languages are PHP, Ruby, Python, and JavaScript.

Anyway, you have understood how the code gets converted to Binary.

But Underneath the hood, there is considerably more going on when python code is run. I will be explaining in detail how it works in my upcoming articles.

Stay tuned till my next article.