Mastering Python Fundamental in 3 days | Day 1 |Python Installation And First Program With Python

  1. First, start by updating the package index and installing the prerequisites
sudo apt updatesudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
Press [ENTER] to continue or Ctrl-c to cancel adding it.
sudo apt install python3.9
python3.9 —- version

First Program With Python

Python is a simple language and has an easy syntax. When we first learn a programming language, we are definitely told to display the program “Hello World !” and in python, it can be done simply by writing the command print( “Hello World ! “ ). In this first program, I will demonstrate the use of python in a program to add two numbers.

output :



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Backend | Content Writer | Python Programming | I like to learn new things to get new experiences