Python Language Introduction

The most sought-after general-purpose high level programming language that we use today is Python and today python for data science is what everybody is looking for. In 1991 Guido van Rossum initially made the design of this programming language and later the developement came from the Python Software foundation. The emphasis was mainly on the code readability and one can express the code in fewer lines.

python for data science

You can easily work and integrate the systems more efficiently.

In this chapter, we will be learning about Python 2 and Python 3 and both these versions are very different from each other but we will learn python keeping the data science aspect in mind.

Starting with Python programming:
  1. Find the interpreter:

The interpreter is required to interpret and run the program. You can find many online interpreters which can help you in running a python program.

In windows, when you install the python software, you will automatically get an interpreter installed. And in Linux, it comes already installed.

  1. Writing the first program:

You can run the following program initially:

#Code starts


#Code ends

Output: PSTQuiz

Now let us check the code from start to end-

Line 1: [#Code starts] This is a comment, this is ignored by the python interpreter and it is only for the readability of the code for the programmer.

Line 2: [print(“PSTQuiz”)] This is the output statement which is used to print anything on the screen. After the execution of this statement, the cursor will move down to the new line. One can see the difference between python 2 and python 3 by looking at how the print statement is used. In version 2, it is not a function but in version 3 it works as a function having the parentheses.

Line 3: As in statement 1, it is just another comment statement.

To download free python, click here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.