DEV Community

V Sai Harsha
V Sai Harsha

Posted on • Updated on

Master Python - Installation

Introduction

In this blog article. We are going to have a brief introduction on Python and Programming. So, without any further ado, let’s get started into a brief introduction of Python.

What is Python?

Python is an interpreted, mutli paradigm and general-purpose scripting language. It is a popular programming language for beginners due to its readability of code. It is used in many domains of Computer Science like Data Science, Machine Learning and so on. Before we get started writing our Python code, we need to install Python into our computer.

Installing Python

To install Python,

Head over to Python website.
Click on Downloads and Click on “Python 3.XX.X”.
Follow the instructions of the setup and install Python.
Congrats, you have installed Python. To verify our installation, Open Command Prompt (or Terminal if you are on macOS.) and type:

python --version or python3 --version if you are on macOS and press Enter.

You can see the output is the version of Python that you have installed.
Alright, we have installed Python. So, let’s start writing Python code.

Writing our First Line of Python
Let’s write our line of Python Code. So,

Open your Command Prompt or terminal if you are on macOS.
Type python or python3 if you are on macOS and press Enter.
Then type print('Hello Python!').
As you can see, we get Hello Python!. This is a Python REPL(Read-Eval-Print-Loop)

Conclusion

We have learnt:

  • A Brief Introduction of Python
  • How to install it?
  • Writing our First Line of Python

Top comments (0)