Sitemap
YavarTechWorks

Today a Reader, Tomorrow a Leader

Python Getting Started

3 min readMay 28, 2023

--

Python

In this article, we are going to learn about what Python is, its history, and Python Interpreter.

What is Programming Language

  • Programming languages are instructions that are given to computers, then the computer does that instruction.

What is Interpreter?

  • Basically, a computer does not know any high-level language. Computers know only zeros and ones (Machine language). So here you may ask a question, then how do computers understand high-level language (Python, Javascript, C, C++)?
  • Each and every Programming language has either a compiler or interpreter.
  • Basically, Compiler and Interpreter is also a program.
  • What they do is, get the high-level code, and convert it into machine language (zeros and ones).
  • Here the major difference between a compiler and an Interpreter is, the compiler gets the entire code at once, and converts it to machine language, At the same time, the interpreter gets the code line by line, and converts each line to machine language and executes that.
  • Python uses the Interpreter, this interpreter is written in C programming (C Python).
  • What C Python does is, read the source code, and convert it into bytecode, this bytecode is closer to machine code. Then this bytecode gets run on the CPython virtual machine which runs on our computers.

Get Bennison J’s stories in your inbox

Join Medium for free to get updates from this writer.

History Of Python

  • Python was invented in 1991 with the name Python from Monty Python (Which was the British comedy group). it was developed by Guido. In the world everything is evaloving, like that, the programming language is also evaluating, So Guido decided to add new features to Python, So he developed a new version of Python (Python three) in 2008.
  • Python Three comes with breaking changes, which means the previous functionality (Python Two) is not working in Python Three. (To learn more about Python three and Python two).
print 'Hell world';  // Python two, Python three does not supports this syntax.

print('Hello World'); // In python three the print statment should be comes with curly braces.
  • Recently python community said that they are going to stop the security update for Python version two Which means they are going to stop maintaining Python two.

Simple Python program

name = input('What is your name?')
print('Hello ' + name)
  • The above one is simple Python programming, Here what we did is, just get the input name from the user, store it to the variable, and print that in the terminal.

I hope you understood the history of Python and its execution.

--

--