03.Overview of Python Programming
03.Overview of Python Programming
Programming
Ganpati Rathia
Assistant Professor
CEA Dept
GLA University
Introduction to Python
• High-level, Interpreted Language: Python is easy to read and write,
abstracting many complexities.
• General-purpose: Used for web development, data science, AI,
automation, and more.
• Open-source & Cross-platform: Available on multiple platforms with
a large community of developers.
• Simple Syntax: Python's syntax emphasizes readability, reducing the
cost of program maintenance.
• Extensive Libraries: Offers powerful libraries for scientific computing
(NumPy, Pandas), web frameworks (Django, Flask), and machine
learning (TensorFlow, scikit-learn).
• Popular for Beginners & Experts: Ideal for beginners due to its
simplicity, but also powerful enough for professional development.
History of Python Programming
Python is a high-level, interpreted programming language
that was created by Guido van Rossum and first released in
1991. The language was designed to emphasize code
readability and simplicity, making it accessible to both
beginners and experienced developers.
• Early Development (Late 1980s - 1991)
• Python's development began in the late 1980s at Centrum
Wiskunde & Informatica (CWI) in the Netherlands. Guido van
Rossum, inspired by the ABC programming language, aimed to
create a language that addressed its shortcomings while
retaining its ease of use. Python 1.0 was officially released on
February 20, 1991.
History of Python Programming
(Cont…)
• Major Python Releases
• Python 1.x (1991 - 2000): Introduced fundamental features
such as exception handling, functions, and core data types
(lists, dictionaries, strings, etc.).
• Python 2.x (2000 - 2010): Brought major improvements,
including list comprehensions and garbage collection. However,
it had inconsistencies that led to the development of Python 3.
• Python 3.x (2008 - Present): Introduced major changes,
making the language more consistent and efficient. Key
improvements included better Unicode support, improved
standard libraries, and enhanced performance.
• Python's Growth and Popularity
Python has gained immense popularity over the years due to its versatility.
It is widely used in web development, data science, artificial intelligence,
automation, and scientific computing. Its strong community support and
extensive libraries contribute to its success.
4. Python Manual:
• Description: Includes various official documents about
Python.
• Features:
• Installation and setup guides.
• Tutorials for getting started with Python.
• Detailed Python API documentation.
• Frequently Asked Questions (FAQs) and troubleshooting.
IDEs for Python
1. PyCharm: 3. Spyder:
• Description: A popular Python IDE developed by • Description: A Python IDE tailored for data
JetBrains, available in both free (Community) and science and scientific computing.
paid (Professional) versions. • Features:
• Features: • Integrated with powerful libraries like NumPy, SciPy,
• Intelligent code completion and error checking. and Matplotlib.
• Powerful debugging and testing tools. • Variable explorer and IPython console for interactive
• Integrated version control (Git). development.
• • Suitable for data analysis, scientific computing, and
Supports web frameworks (Django, Flask) and
scientific libraries. machine learning.
• Multi-Line Commands:
• You can write multi-line code in the shell by using indentation,
like loops or function definitions.
• Use for Debugging:
• The Python Shell is useful for testing small code snippets, experimenting with libraries, and
debugging programs in real-time.