Python Programming
Name: Yogesh Yashvant Gavit
Class: FYMCA
History
Python laid its foundation in the late 1980s.
The implementation of Python was started in December 1989 by Guido Van
Rossum at CWI in Netherland.
In February 1991, Guido Van Rossum published the code (labeled version
0.9.0) to alt.sources.
In 1994, Python 1.0 was released with new features like lambda, map, filter,
and reduce.
Python 2.0 added new features such as list comprehensions, garbage
collection systems.
On December 3, 2008, Python 3.0 (also called "Py3K") was released. It was
designed to rectify the fundamental flaw of the language.
ABC programming language is said to be the predecessor of Python
language, which was capable of Exception Handling and interfacing with the
Amoeba Operating System.
Usage of Python
Desktop Applications
Web Applications
Data Science
Artificial Intelligence
Machine Learning
Scientific Computing
Robotics
Internet of Things (IoT)
Gaming
Mobile Apps
Data Analysis and Preprocessing
Python Applications
How to Install Python
Visit the link https://www.python.org/downloads/ to download the latest
release of Python. In this process, we will install Python 3.8.6 on our
Windows operating system. When we click on the above link, it will bring us
the following page.
Step 1 Select the Python's version to download
Step 2 Click on the download button.
Step 3 From download folder click on the file.
Step 4 click on install and follow the next processes.
Python data types
Python Examples
Local and Global variables:
x = 101
# Global variable in function
def mainFunction():
# printing a global variable
global x
print(x)
# modifying a global variable
x = 'Welcome To Javatpoint'
print(x)
mainFunction()
print(x)
Python Keywords
False await else import pass
None break except in raise
True class finally is return
and continue for lambda try
as def from nonlocal while
assert del global not with
async elif if or yield
Keyword examples
for i in range(15):
print( i + 4, end = " ")
# breaking the loop when i = 9
if i == 9:
break
print()
# looping from 1 to 15
i = 0 # initial condition
while i < 15:
# When i has value 9, loop will jump to next iteration using continue. It will not print
if i == 9:
i += 3
continue
else:
# when i is not equal to 9, adding 2 and printing the value
print( i + 2, end = " ")
i += 1
Thank you…