Python Full Course
Python Full Course
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.
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: