,Python Programming Handbook CHAPTER 01
Beginner Friendly Learning Guide
What is Programming?
Just like we use Hindi or English to communicate with each other, we use programming languages like
Python to communicate with computers.
Programming is the process of giving instructions to a computer so it can perform tasks, solve
problems, and automate work.
What is Python?
Python is one of the easiest and most beginner friendly programming languages. Its syntax feels close
to simple English which makes it easy to read, write, and understand.
Python is widely used in web development, automation, artificial intelligence, machine learning, data
science, and software development.
Features of Python
01 02
Easy to learn and beginner friendly syntax. Free and open source programming language.
03 04
Works on Windows, Linux, and Mac systems. Widely used in modern technologies and AI.
Installation
GETTING STARTED
Just install it
like a game
Python can be downloaded from python.org Download the installer for your
operating system and complete the setup process.
,Python Programming Handbook CHAPTER 01
Beginner Friendly Learning Guide
Modules, Comments & Pip
Let’s write our very first python program. Create a file called hello.py and paste the below code in it.
print("hello world") # print is a function
Execute this file by typing python hello.py and you will see Hello World printed on the screen.
Modules
A module is a file containing code written by somebody else which can be imported and used in our
programs.
Pip
Pip is the package manager for Python. You can use pip to install external modules on your system.
pip install flask
Types of Modules
There are two types of modules in Python.
01 02
Builtin Modules are preinstalled with Python. External Modules need to be installed using
pip.
Examples of builtin modules are os and random. Examples of external modules are tensorflow and
flask.
, Python as a Calculator
REPL MODE
Use Python directly
from the terminal
We can use Python as a calculator by typing python in the terminal. This opens REPL which stands
for Read Evaluate Print Loop.
Beginner Friendly Learning Guide
What is Programming?
Just like we use Hindi or English to communicate with each other, we use programming languages like
Python to communicate with computers.
Programming is the process of giving instructions to a computer so it can perform tasks, solve
problems, and automate work.
What is Python?
Python is one of the easiest and most beginner friendly programming languages. Its syntax feels close
to simple English which makes it easy to read, write, and understand.
Python is widely used in web development, automation, artificial intelligence, machine learning, data
science, and software development.
Features of Python
01 02
Easy to learn and beginner friendly syntax. Free and open source programming language.
03 04
Works on Windows, Linux, and Mac systems. Widely used in modern technologies and AI.
Installation
GETTING STARTED
Just install it
like a game
Python can be downloaded from python.org Download the installer for your
operating system and complete the setup process.
,Python Programming Handbook CHAPTER 01
Beginner Friendly Learning Guide
Modules, Comments & Pip
Let’s write our very first python program. Create a file called hello.py and paste the below code in it.
print("hello world") # print is a function
Execute this file by typing python hello.py and you will see Hello World printed on the screen.
Modules
A module is a file containing code written by somebody else which can be imported and used in our
programs.
Pip
Pip is the package manager for Python. You can use pip to install external modules on your system.
pip install flask
Types of Modules
There are two types of modules in Python.
01 02
Builtin Modules are preinstalled with Python. External Modules need to be installed using
pip.
Examples of builtin modules are os and random. Examples of external modules are tensorflow and
flask.
, Python as a Calculator
REPL MODE
Use Python directly
from the terminal
We can use Python as a calculator by typing python in the terminal. This opens REPL which stands
for Read Evaluate Print Loop.