0% found this document useful (0 votes)
2 views2 pages

Python Full Course

This document provides an overview of programming and Python, highlighting its simplicity and ease of use for beginners. It covers Python's features, installation process, and introduces modules and PIP as tools for managing code. Additionally, it explains how to use Python as a calculator and discusses the types of comments in Python programming.

Uploaded by

ummahinsights015
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Python Full Course

This document provides an overview of programming and Python, highlighting its simplicity and ease of use for beginners. It covers Python's features, installation process, and introduces modules and PIP as tools for managing code. Additionally, it explains how to use Python as a calculator and discusses the types of comments in Python programming.

Uploaded by

ummahinsights015
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Python full course: Notes by Muhammad Saad

What is Programing?
Just like we use Hindi or English to communicate with each other, we use a programming
language like python to communicate with Computer. Programing is a way to instruct
the computer to perform various tasks.

What is python?
Python is a simple language and easy to understand which feels like reading simple
English. This pseudo code is easy to learn and understanding by beginners.

Features of python?
 Easy to understand = Less development time.
 Free and open source
 High level language
 Portable: works on Linux /windows/ Mac.
 Fun to work with.

Installation?
Python can easily be installed from python.org. When you click on the download button,
python can be installed right after you complete the setup by executing the file for your
platform. And then download visual code. And check all boxes. And then go to setting
and change the setting of mouse wheel in visual code. And then install the extension of
python. It is made by Guido Van Rossum in 1991.

Chapter no 1: MODULES
COMMENTS &PIP. .
Let’s write our first python program. Create a file called hello.py and paste the below
code.

Execute this file (.py 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 (usually) which can be
imported and used in our programs.

PIP:
Pip is the package manager for python. You can use pip to install a module on your
system.
Types of Module:
There are two types of modules in python.
1. Built in module (preinstalled in python)
2. External modules (need to install using pip).
Some examples of built in modules are os, random etc.
Some example of external modules are transflow, flask etc.

USING PYTHON AS A CALCULATOR:


We can use python as a calculator by typing “python” + enter on the terminal. This
opens REPL OR read evaluate print loop.

COMMENTS:
Comments can used to write something which the programmer doesn’t want to execute.
This can be used to mark another name, date etc.

TYPES OF COMMENTS:
There are two types of comments in python.
1. Single line comments. To write a single line comment just add a “#” at the start of
the line.

2. Multiline comments: to write multi line comments you can use “#” at each line or
you can use the multiline string (“”” “””)

EXERCISE OF CHAPTER NO 1:

You might also like