Introduction To Python
Introduction To Python
Introduction to Python
Master 4.0
Study Material www.ybifoundation.org (+91) 9667987711 support@ybifoundation.org Click to Join Live Doubt Session
2
Python was created by Guido van Rossum, and first released on February 20, 1991
as Python 0.9.0.
While you may know the python as a large snake, the name of the Python
programming language comes from an old BBC television comedy sketch series
called Monty Python’s Flying Circus.
Guido van Rossum began working on Python in the late 1980s as a successor to
the ABC programming language.
Python 2.0 was released in 2000. Python 3.0 released in 2008, was a major
revision not completely backward-compatible with earlier versions. Python latest
version 3.11.2 released on Feb 8, 2023.
Python consistently ranks as one of the most popular programming languages.
Study Material www.ybifoundation.org (+91) 9667987711 support@ybifoundation.org Click to Join Live Doubt Session
3
Python is strongly typed (i.e. types are enforced), dynamically, implicitly typed (i.e.
you don’t have to declare variables), case sensitive (i.e. ybi and YBI are two
different variables) and object-oriented (i.e. everything is an object).
Study Material www.ybifoundation.org (+91) 9667987711 support@ybifoundation.org Click to Join Live Doubt Session
4
• It is easy to learn – the time needed to learn Python is shorter than for many other languages;
this means that it’s possible to start the actual programming faster
• It is easy to use for writing new software – it’s often possible to write code faster when using
Python
• It’s open source, is easy to obtain, install and deploy – Python is free, open and multiplatform;
not all languages can boast that.
• Some languages require you to modify code to run on different platforms, but Python is a
cross-platform language, which means you can run the same code on any operating system
with a Python interpreter.
• It’s extendable. Python code can be written in other languages (such as C++), and users can
add low-level modules to the Python interpreter to customize and optimize their tools.
• It has a multiple standard library. This library is available for anyone to access and users don’t
have to write code for every single function—they can access built-in modules that help with
issues in everyday programming and more.
Study Material www.ybifoundation.org (+91) 9667987711 support@ybifoundation.org Click to Join Live Doubt Session
5
USAGE OF PYTHON
Learn . Practice . Upskil at Ybi Foundation
• Desktop Applications
• Web Applications
• Data Science
• Artificial Intelligence
• Machine Learning
• Scientific Computing
• Robotics
• Internet of Things (IoT)
• Gaming
• Mobile Apps
• Data Analysis and Pre-processing
COMPANIES USING
Learn . PracticePYTHON
. Upskil at Ybi Foundation
GOOGLE COLAB
Learn . Practice . Upskil at Ybi Foundation
• While Jupyter Notebook needs installation on a computer and can uses local machine
resources, Colab is a full-fledged cloud solution for Python coding.
• Google Colab allows anybody to write and execute python code through the browser on
laptop or mobile.
• You can write Python codes using Colab on your Google Chrome or Mozilla Firefox or any
other web browser.
How to CreateLearn
New Notebook
. Practice . Upskil at Ybi Foundation
GOOGLE COLAB
Learn .LAYOUT
Practice . Upskil at Ybi Foundation
1.Rename File
2.Menu
3.Table of content
4. Add code & text cells
5.Share file or add comments
6.Connect
7.Move cells up & down, add comments, delete cell
8.Text cell
9.Code cell
Python Variables
A Python variable is a symbolic name that is a reference or pointer to an object. Once an object
is assigned to a variable, you can refer to the object by that name. But the data itself is still
contained within the object.
Variables are used to store information and represent your data input.
Y b i F o u n d a t i o n
0 1 2 3 4 5 6 7 8 9 10 11 12 13
- - - - -
-9 -8 -7 -6 -5 -4 -3 -2 -1
14 13 12 11 10
• Numerical Data
1. Integer
2. Float
3. Complex
• Boolean
• Date time (A date in Python is not a data type of its own, but we can import a module
named datetime to work with dates as date objects.)
• Sequence Data
1. str
2. bytes
3. bytearray
4. Range
• None Type
Equal == x == y
Not equal != x != y