Introduction to Python Programming Megha V Research Scholar Kannur University
Python Programming Python is • General Purpose • dynamic • high-level • interpreted • object oriented Programming language
Why learn python
Top Reason To Learn Python Where is used Python Programming? • Data Science • Data Mining • Desktop Applications • Console-based Applications • Mobile Applications • Software Development • Artificial Intelligence • Web Applications • Enterprise Applications • 3D CAD Applications • Machine Learning • Computer Vision • Image Processing Applications. • Speech Recognitions
History • Invented in 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 • First public release in 1991 • Open Sourced from beginning
Why was python created “My original motivation for creating Python was the perceived need for a higher level language in the Amoeba(OS) project I realized that the development of system administration utilities in C was taking too long. Moreover, doing these things in the Bourne shell wouldn’t work for a variety of reasons……. So, there was a need for a language that would bridge the gap between C and the shell” - Guido Van Rossum
Some important Features • Readable: Python is a very readable language. • Easy to Learn: Learning python is easy as this is a expressive and high level programming language. • Cross platform: Python is available and can run on various operating systems such as Mac, Windows, Linux, Unix etc. • Open Source: Python is a open source programming language. • Large standard library: Python comes with a large standard library.
Some important Features (contd.) • Free: Python is free to download and use. • Python is an example of a FLOSS (Free/Libre Open Source Software), • Supports exception handling: An exception is an event that can occur during program exception and can disrupt the normal flow of program. • Advanced features: Supports generators and list comprehensions. • Automatic memory management: Memory is cleared and freed automatically.
Integrated Development and Learning Environment (IDLE) • IDLE is a simple integrated development environment (IDE) that comes with Python. • It’s a program that allows you to type in your programs and run them • When you first start IDLE, it starts up in the shell • Shell is an interactive window where you can type in Python code and see the output in the same window
Comparison with other languages Java • Typically 3-5 times shorter than equivalent Java programs • Run-time works harder than Java’s • Components can be developed in Java and combined to form applications in Python • Python can be used to prototype components into Java implementation
Comparison with other languages (contd.) Perl • Come from similar backgrounds • Python is more applicable than Perl • Perl emphasizes support for common application-oriented tasks • Python emphasizes support for common programming methodologies
Comparison with other languages C++ • Differences are similar to Java’s • Often 5-10 times shorter than equivalent C++ code • Python shines as a glue language; used to combine components written in C++
Thrust Areas Of Python 1. Data Science • Data science is an interdisciplinary domain that comprises of three distinct and overlapping areas: • How to model and summarize data like a statistician • How to design and use algorithms to store, process, and visualize data like a computer scientist • How to formulate the right questions and put answers in the right context like a domain expert
Thrust Areas Of Python (contd.) 2. Automation • There are times when tasks are too niche to have standard software for it. • That is when scripting comes into play. • Python allows developers to script custom automation and bring efficiency in tasks in less time. • Automating repetitive tasks such as sending emails & voicemails, organizing files & folders, launching programs, filling out forms, etc. can be automated through scripting.
Thrust Areas Of Python (contd.) 3. Application Development • Python is a favourable choice for web application development. • Python integrates well with other programming languages and has some amazing web frameworks that boost the application development cycle.
Thrust Areas Of Python (contd.) 4. AI & Machine Learning • Python’s pre-built libraries are the reason why it is preferred for AI & machine learning development. • Numpy for scientific computation, • Pybrain for machine learning tasks, • Scipy for technical and scientific computing • These are some of the python libraries that make it a supportive technology for AI and ML development.
• There are python libraries for Natural Language & Text Processing. • The Natural Language Toolkit (NLTK) contains open-source Python modules, linguistic data & documentation for R&D in natural language processing and text analytics. • In addition to this, there are some general python libraries for Artificial Intelligence. • AIMA, • SimpleAI, • EasyAI, • pyDatalog Thrust Areas Of Python (contd.)
Thrust Areas Of Python (contd.) 5. Audio/Video Applications • Python is a sought-after programming language for creating audio/video applications. • An example of this is the Spotify app that’s built using Python programming language. • Some of the python libraries such as PyDub, OpenCV support building audio/video streaming apps with high-level functionality.
Thrust Areas Of Python (contd.) 6. Console Applications • A console application is a computer program that’s designed for the text- only interfaces, such as the command-line interface of Unix, DOS operating system. • For building console applications, there are advanced python libraries that help in the development of fully-fledged apps for the command-line interface.
Thrust Areas Of Python (contd.) 7. Desktop GUI • Python has libraries for building desktop GUI applications. • Camelot • Kivy • PyGTK are some of the amazing libraries and tool-kits available for building desktop GUI.

Python programming

  • 1.
    Introduction to Python Programming MeghaV Research Scholar Kannur University
  • 2.
    Python Programming Python is •General Purpose • dynamic • high-level • interpreted • object oriented Programming language
  • 3.
  • 4.
    Top Reason ToLearn Python Where is used Python Programming? • Data Science • Data Mining • Desktop Applications • Console-based Applications • Mobile Applications • Software Development • Artificial Intelligence • Web Applications • Enterprise Applications • 3D CAD Applications • Machine Learning • Computer Vision • Image Processing Applications. • Speech Recognitions
  • 5.
    History • Invented inNetherlands, 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 • First public release in 1991 • Open Sourced from beginning
  • 6.
    Why was pythoncreated “My original motivation for creating Python was the perceived need for a higher level language in the Amoeba(OS) project I realized that the development of system administration utilities in C was taking too long. Moreover, doing these things in the Bourne shell wouldn’t work for a variety of reasons……. So, there was a need for a language that would bridge the gap between C and the shell” - Guido Van Rossum
  • 7.
    Some important Features •Readable: Python is a very readable language. • Easy to Learn: Learning python is easy as this is a expressive and high level programming language. • Cross platform: Python is available and can run on various operating systems such as Mac, Windows, Linux, Unix etc. • Open Source: Python is a open source programming language. • Large standard library: Python comes with a large standard library.
  • 8.
    Some important Features(contd.) • Free: Python is free to download and use. • Python is an example of a FLOSS (Free/Libre Open Source Software), • Supports exception handling: An exception is an event that can occur during program exception and can disrupt the normal flow of program. • Advanced features: Supports generators and list comprehensions. • Automatic memory management: Memory is cleared and freed automatically.
  • 9.
    Integrated Development andLearning Environment (IDLE) • IDLE is a simple integrated development environment (IDE) that comes with Python. • It’s a program that allows you to type in your programs and run them • When you first start IDLE, it starts up in the shell • Shell is an interactive window where you can type in Python code and see the output in the same window
  • 10.
    Comparison with otherlanguages Java • Typically 3-5 times shorter than equivalent Java programs • Run-time works harder than Java’s • Components can be developed in Java and combined to form applications in Python • Python can be used to prototype components into Java implementation
  • 11.
    Comparison with otherlanguages (contd.) Perl • Come from similar backgrounds • Python is more applicable than Perl • Perl emphasizes support for common application-oriented tasks • Python emphasizes support for common programming methodologies
  • 12.
    Comparison with otherlanguages C++ • Differences are similar to Java’s • Often 5-10 times shorter than equivalent C++ code • Python shines as a glue language; used to combine components written in C++
  • 13.
    Thrust Areas OfPython 1. Data Science • Data science is an interdisciplinary domain that comprises of three distinct and overlapping areas: • How to model and summarize data like a statistician • How to design and use algorithms to store, process, and visualize data like a computer scientist • How to formulate the right questions and put answers in the right context like a domain expert
  • 14.
    Thrust Areas OfPython (contd.) 2. Automation • There are times when tasks are too niche to have standard software for it. • That is when scripting comes into play. • Python allows developers to script custom automation and bring efficiency in tasks in less time. • Automating repetitive tasks such as sending emails & voicemails, organizing files & folders, launching programs, filling out forms, etc. can be automated through scripting.
  • 15.
    Thrust Areas OfPython (contd.) 3. Application Development • Python is a favourable choice for web application development. • Python integrates well with other programming languages and has some amazing web frameworks that boost the application development cycle.
  • 16.
    Thrust Areas OfPython (contd.) 4. AI & Machine Learning • Python’s pre-built libraries are the reason why it is preferred for AI & machine learning development. • Numpy for scientific computation, • Pybrain for machine learning tasks, • Scipy for technical and scientific computing • These are some of the python libraries that make it a supportive technology for AI and ML development.
  • 17.
    • There arepython libraries for Natural Language & Text Processing. • The Natural Language Toolkit (NLTK) contains open-source Python modules, linguistic data & documentation for R&D in natural language processing and text analytics. • In addition to this, there are some general python libraries for Artificial Intelligence. • AIMA, • SimpleAI, • EasyAI, • pyDatalog Thrust Areas Of Python (contd.)
  • 18.
    Thrust Areas OfPython (contd.) 5. Audio/Video Applications • Python is a sought-after programming language for creating audio/video applications. • An example of this is the Spotify app that’s built using Python programming language. • Some of the python libraries such as PyDub, OpenCV support building audio/video streaming apps with high-level functionality.
  • 19.
    Thrust Areas OfPython (contd.) 6. Console Applications • A console application is a computer program that’s designed for the text- only interfaces, such as the command-line interface of Unix, DOS operating system. • For building console applications, there are advanced python libraries that help in the development of fully-fledged apps for the command-line interface.
  • 20.
    Thrust Areas OfPython (contd.) 7. Desktop GUI • Python has libraries for building desktop GUI applications. • Camelot • Kivy • PyGTK are some of the amazing libraries and tool-kits available for building desktop GUI.