0% found this document useful (0 votes)
8 views

Industrial Training Python Programming

IT file

Uploaded by

Urmila Sisodiya
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Industrial Training Python Programming

IT file

Uploaded by

Urmila Sisodiya
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

PYTHON

PROGRAMMING
SUBMITTED BY: URMILA KANWAR
SUBMITTED TO: RISHIRAJ VYAS SIR
TRAINING DETAILS

• Mode of training : online


• Start date : 01/07/2021
• End date : 15/07/2021
• Duration : 15 days
• Number of hours :21 hours
TOPICS
• What is Python?
• History of Python
• Scope of Python
• Who uses Python today
• Why do people use Python?
• Python basic ( data types)
• What can we do with Python
• Project
WHAT IS PYTHON?

• Python is a General purpose programming language that is often


applied in scripting roles.
• So Python is a programming language as well as scripting language.
• Python is also called Interpreted language.
HISTORY OF PYTHON

• Invented in the Netherlands, early 90s by Guido van Rossum.


• Python was conceived in the late 1980s and its implementation was
started in December 1989, Guido van Rossum is fan of ‘Monty Python’s
Flying circus’,this is a famous TV show in Netherlands. Named after
Monty Python. Open source from the beginning.
SCOPE OF PYTHON
• Science
- Bioinformatics
• System administration
- Unix
-Web logic
-Web sphere
• Web application development
- CGI
- Jython
- Servlets
• Testing Scripts
WHO USES PYTHON TODAY

• Python is being applied in real revenue – generating products by real companies.


• For instance:

1. Google makes extensive use of Python in web search system and employs
python creator.
2. Intel, Cisco , Hewlett-Packard , Seagate , Qualcomm, and IBM use Python for
hardware testing.
3. ESRI uses Python for end user customization tool for its popular GIS mapping
products.
4. The youtube video sharing service is largely written in python .
WHY DO PEOPLE USE PYTHON?
• Python is object oriented
structure supports such concepts as polymorphism, operation overloading and multiple inheritance .
• It’s free(open source)
Downloading and installing Python is free and easy source code is easily accessible.
• It’s powerful
1. Dynamic typing
2. Built-in types and tools
3. Library utilities
4. Third party utilities(eg: Numeric,NumPython and SciPy)
5. Automatic memory Management
• It’s portable
1. Python runs virtually every major platform used today
2. As long as you have a compatible Python interpreter installed , python programs will run in exactly same manner , irrespective of
platform.
DATA TYPES

• Booleans are either true or false


• Numbers can be integers( 1and 2),floats(1.1 and 1.2), fractions(1/2 and 2/3)
or even complex numbers
• Strings are sequences of unicode characters , eg: an html document.
• Bytes and byte arrays. eg: a jpeg image file
• Lists are ordered sequences of values.
• Tuples are ordered, immutable sequence of values
• Sets are unordered bags of values
EXAMPLE:

• String “whoop!”
• Integer 42
• Float 3.14151
• List [ “George”,”Paul”,”John”,”Ringo”]
• Tuple (1,2,3,4,5);
VARIABLES

• Variables are nothing but reserved memory locations to store values.


This means that when you create a variable you reserve some space in
memory.
• Ex:
1. Counter =100 #an Integer assignment
2. Miles =1000.0 #a floating point
3. Name =“John” # A string
PYTHON OPERATOR

• Arithmetic operators:
+,-,*,/,* *
• Comparison operators:
>,<,>=,<=,==,!=
• Logic operator:
and,or, not
TUPLES

• A tuple is a sequence of immutable Python objects,these are


sequences just like lists. The difference between tuple and lists are ,the
tuples cannot be changed unlike the lists and tuple uses parentheses
whereas lists uses square brackets.
• For example:
tup1=(‘chemistry’,’physics’,1997,2000)
tup2=(1,2,3,4,5);
tup3= “a”, “b”, “c”, “d”;
LISTS

• The list is a most versatile datatype available in python which can be


written as a liston comma-separated values(items)between square
brackets.
• For example:
list1=[‘physics’,’chemistry’,1997,2000];
list2=[1,2,3,4,5];
list3=[“a”, “b”, “c”, “d”];
LOOPS

• A loop statement is used to allow us to execute a statement or group of


statements multiple times
• While loop repeats a statement or group of statements while a given
condition is TRUE. It tests the condition before executing loop body.
• For loop executes a sequence of statements multiple times and
abbreviates the code that manages the loop variable .
• Nested loops You can use one or more loop inside any other
while,for,do…..while loop.
FUNCTIONS

• Function block begins with the keyword def followed by the function
name and parentheses (( )).
• Syntax:
def function name( parameters );
“function_docstring”
function_suite
return [expression]
WHAT CAN WE DO WITH PYTHON?

• System programming
• Graphical User Interface programming
• Internal scripting
• Component integration
• Database programming
• Gaming,Imaging,XML,Robot and more
THANK YOU
For watching this ppt

You might also like