0% found this document useful (0 votes)
19 views23 pages

Python Lesson1

The document provides an overview of Python, including its advantages, applications, and disadvantages. It discusses pattern recognition and its significance in machine learning, along with the concept of byte code and the role of JVM in executing Python programs. Additionally, it highlights organizations that utilize Python and introduces IDLE as the integrated development environment for Python programming.

Uploaded by

anuritrj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views23 pages

Python Lesson1

The document provides an overview of Python, including its advantages, applications, and disadvantages. It discusses pattern recognition and its significance in machine learning, along with the concept of byte code and the role of JVM in executing Python programs. Additionally, it highlights organizations that utilize Python and introduces IDLE as the integrated development environment for Python programming.

Uploaded by

anuritrj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

GETTING STARTED

WITH PYTHON
ALGORITHM AND FLOWCHART
ABSTRACTION
PATTERN RECOGNITION
• Pattern is everything around in this digital world. A pattern can either be seen
physically or it can be observed mathematically by applying algorithms.
Example: The colours on the clothes, speech pattern etc. In computer science, a
pattern is represented using vector features values.
• What is Pattern Recognition ?
• Pattern recognition is the process of recognizing patterns by using machine
learning algorithm. Pattern recognition can be defined as the classification of
data based on knowledge already gained or on statistical information extracted
from patterns and/or their representation. One of the important aspects of the
pattern recognition is its application potential.

• Examples: Speech recognition, speaker identification, multimedia document


recognition (MDR), automatic medical diagnosis.
PYTHON - ADVANTAGES
PYTHON - ADVANTAGES
1) Presence of third-party modules
2) Extensive support libraries
(NumPy for numerical calculations, Pandas for data analytics etc)
3) Open source and community development
4) User-friendly data structures
5) Dynamically typed language
(No need to mention data type. Based on value assigned, it takes data type)
6) Object-oriented language
7) Portable and Interactive
8) Portable across Operating systems
PYTHON - APPLICATIONS

• Applications :
1) GUI based desktop
applications(Games,
Scientific Applications)
2) Web frameworks and
applications
3) Enterprise and Business
applications
4) Operating Systems
5) Language Development
6) Prototyping

VIDEO EXPLAINING PROTOTYPING : https://youtu.be/_1bOaNSy5XY


PYTHON –WHO IS USING?
• Organizations using Python :
1) Google(Components of Google spider and Search Engine)
2) Yahoo(Maps)
3) YouTube
4) Mozilla
5) Dropbox (cloud storage)
6) Microsoft
7) Cisco
8) Spotify
9) Quora
PYTHON -DISADVANTAGES
• Not the fastest language.
• Lesser library than C, Java, Pearl.
• Not strong on type binding.
• Not easily convertible.
• Memory consumption.
• Database Access.
• Runtime Errors.
• Mobile development.
IDLE OF PYTHON
• IDLE (short for Integrated Development Environment or Integrated
Development and Learning Environment) is an integrated development
environment for Python, which has been bundled with the default
implementation of the language.
PYTHON –IDE’S AND CODE
EDITORS
EXECUTION OF A PROGRAM
COMPILER
SOURCE CODE,OBJECT CODE,BYTE CODE,
MACHINE CODE
• SOURCE CODE is the program written in any high level language.
• OBJECT CODE is the result of compilation of a program written in a
programming language stored for later use.
• BYTE CODE is a program that has been compiled from source code into low
level code designed for an interpreter. It can be executed by a JVM(Java
Virtual Machine) or further compiled into machine code which is recognized
by the processor.
• Byte code is artificial machine code for a virtual machine.
• MACHINE CODE is directly executable binary representation of a computer
program.
WHAT IS JVM?
• JVM is a virtual machine that resides in the real machine.
• Machine language for JVM is bytecode.
• Each operating system has different JVM, but the output produced after
executing byte code is same across all operating systems.
• A compiler generates byte code of a program written in any programming
language rather than different machine code for each type of machine.
• JVM can execute byte code generated by any programming language. It is
platform independent.
PYTHON INTERPRETED?
• Python as a programming language has no saying about if it's
a compiled or interpreted programming language, only the implementation of it.
The terms interpreted or compiled is not a property of the language but a property
of the implementation. Python program runs directly from the source code .
• so, Python will fall under byte code interpreted. The .py source code is first
compiled to byte code as .pyc. This byte code can be interpreted (official CPython),
or JIT compiled (PyPy). Python source code (.py) can be compiled to different byte
code also like IronPython (.Net) or Jython (JVM).
• There are multiple implementations of Python language. The official one is a byte
code interpreted one. There are byte code JIT (JUST IN TIME) compiled
implementations too.
• Python(Cpython) is neither a true compiled time nor pure interpreted language but
it is called interpreted language.
LET US TYPE OUR FIRST PYTHON
PROGRAM

You might also like