Intership Python
Intership Python
ON
PYTHON
PRESENTED BY:-
KUSH MIDHA
What is Python…?
• Python is a general purpose programming language that is
often applied in scripting roles.
• So, Python is programming language as well as
scripting language.
• Python is also called as Interpreted language.
History
• 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 sourced from the beginning.
What can we do with Python…?
System programming
Graphical User Interface Programming
Internet Scripting
Component Integration
Database Programming
Gaming, Images, XML , Robot and more
Python Syntax
Python Indentation
Indentation refers to the spaces at the beginning of a code line.
Where in other programming languages the indentation in code is for
readability only, the indentation in Python is very important.
Python Variable
In Python, variables are created when you assign a value to it:
Python comments
Python has commenting capability for the purpose of in-code documentation.
Comments start with a #, and Python will render the rest of the line as a
comment.
Python Data Types
In programming, data type is an important concept.
Variables can store data of different types, and different types can do
different things.
Python has the following data types built-in by default, in these
categories:
Text: str
Numeric: int, float, complex
Mapping: Dict
Set: set, frozenset
Boolean : bool
Binary: bytes, memorybyte, bytesarray
Math
Try typing this into Code:
>>> print 3 + 12
15
>>> print 12 – 3
9
>>> print 9 + 5 – 15 + 12
11
Operators:
add: +
subtract: -
Math
.
More operators:
divide: /
multiply: *
>>> print 3 * 12 36
>>> print 12 / 3 4
>>> print 11 / 3 3
>>> print 12.0 / 3.0 4.0
>>> print 11.0 / 3.0 3.66
Python Syntax compared to other
programming languages
Python was designed for readability, and has some similarities
to the English language with influence from mathematics.
Python uses new lines to complete a command, as opposed to
other programming languages which often use semicolons or
parentheses.
Python relies on indentation, using whitespace, to define scope;
such as the scope of loops, functions and classes. Other
programming languages often use curly-brackets for this
purpose.
Future Technologies Counting On Python
Big Data
The future scope of python programming language can also be
predicted by the way it has helped big data technology to grow.
Python has been successfully contributing in analyzing a large
number of data sets across computer clusters through its high-
performance toolkits and libraries.
Networking
Networking is another field in which python has a brighter scope in
the future. Python programming language is used to read, write and
configure routers and switches and perform other networking
automation tasks in a cost-effective and secure manner.
THANK YOU