Python is a widely used general-purpose, high-level programming language.Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C.The language provides constructs intended to enable clear programs on both a small and large scale.Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library.
2. Agenda
● What is Python?
● Gems of Python
● Python's users
● Scope of Python
● Major uses of Python
● Why Python
● Getting started with Python
3. What is Python?
Python is a powerful multi paradigm computer programming language,
optimized for programmer productivity, code readability, and software
quality.
Guido Van Rossum
Source code is available under the
GNU General Public License (GPL).
Python is named after famous British
comedy group
4. Python: a Complete Language
Python provides simplicity and
ease of use of scripting
Language , along with more
advanced software-engineering
tools typically
found in compiled languages
which makes Python useful for
large-scale development
projects.
Scripting language Compiled language
6. Portable
Python compiles and runs on every major platform currently in use.
Python can be used on 21 different operating systems and environments.
7. Powerful
Python's toolset places it between traditional scripting languages (Tcl, Scheme and Perl) and systems
development languages ( C ,C++ and Java)
11. Why Python?
C C++ Java Python
Object oriented No Yes Yes Yes
Functional No Yes No Yes
Type safety Unsafe Unsafe Safe Safe
Type expression Explicit Explicit Explicit Implicit
Type checking Static Static Static Dynamic
Failsafe I/O No No Yes Yes
Readability Difficult Difficult Difficult Easy
Learning Difficult Difficult Difficult Easy
Language Programming Programming Programming Programming and
scripting
Length of code 5-10 times greater
than python
5-10 times greater
than python
3-5 times greater than
python
Small and manageable
codes
12. Scope of Python
Python is most demanded
language currently as shown
by surveys.
13. What Job Trends Say
The graph here shows
the job trends in
different languages
with Python having the
maximum percentage
growth.
14. Major uses of Python
Scientific and
numeric
programming
15. GUIs
Camelot provides components for building applications on top of Python, SQLAlchemy and Qt.
inspired by the Django admin interface
GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating graphical user interfaces.
Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off
toolsto complete application suites.
Kivy is a Python library for development of multi-touch enabled media rich applications.
The aim is to allow for quick and easy interaction design and rapid prototyping, while making
your code reusable and deployable.
Tkinter has the advantage of being included with the Python standard library, making it the
most convenient and compatible toolkit to program with.
16. PyQt is a set of Python v2 and v3 bindings for Digia's Qt application framework and runs
on all platforms supported by Qt including Windows, MacOS/X and Linux.
pyjs is a Rich Internet Application (RIA) Development Platform for both Web and Desktop.
With pyjs you can write your JavaScript-powered web applications entirely in Python.
wxPython is a GUI toolkit for the Python programming language. It allows Python
programmers to create programs with a robust, highly functional graphical user
interface, simply and easily
17. Numeric and Scientific Programming
Scipy Stack Includes modules for linear algebra, optimization, integration,
special functions, signal and image processing, statistics, genetic
algorithms
>>>a[4,:4:]
array([[44,45]
[54,55]])
Numerical Python adds a fast, compact, multidimensional array
facility to Python. creating and manipulating numerical data
IPython is a command shell for interactive computing developed for the Python
programming language that offers enhanced introspection ,rich media, additional shell
syntax, tab completion and rich history.
18. Numeric and scientific programming
Matplotlib : Matplotlib is a python 2D plotting library which produces
publication quality figures in a variety of hardcopy formats and interactive
environments across platforms.Like Pie charts,simple plots,Histograms etc.
Pandas: pandas is an open source, BSD-licensed library providing high-erformance,
easy-to-use data structures and data analysis tools for the
Python programming language.
SymPy :SymPy is a Python library for symbolic mathematics. It is written entirely in
python and doesn’t need any external liberary.
19. Rapid Prototyping
Python is an ideal choice for prototyping because:
It is Dynamically typed language: Python doesn't require you to
declare the data type of a variable. This lets you write a function that is
generic enough to handle any kind of data.
Python has Rich Set of Data-Structures: Built-in support for lists,
dictionaries, sets, etc. reduces the time involved in hunting for a library
that provides you those basic data-structures.
Python is Expressive and Succinct: The algorithms that operate on the
data-structures are intuitive and simple to use. The final code is more
readable than a pseudo code.
20. Component Integration
It spans multiple platforms, middleware products, and
application domains.
Python can fulfill an important integration role in the design of
large applications with a long life expectancy.
It allows a fast response to changes in user requirements that
require adapting the higher-level application logic without
changing the fundamental underlying components.
It also allows quick adaptation of the application to changes in
the underlying components.
21. Getting Started With Python
Print “hello
world”
Print (“hello world”)
If else structure
a = 10
b = 20
If a>b:
print(“a is greater”)
else:
print(“b is greater”)
for loop
for x in range(10):
print(x)
26. Thank you for watching the Live Demo for Hadoop.
You can always contact us on:
Phone : +91 124 4763660 (India)
Email : contact@easylearning.guru
Skype Id : easylearning.guru
Website : www.easylearning.guru
Your queries are always welcome.