Topperworld.in
Introduction to Python
• Python is a general-purpose, dynamic, high-level, and interpreted
programming language.
• Python supports multiple programming patterns, including object-oriented,
imperative, and functional or procedural programming styles.
• It was created by Guido van Rossum during 1985- 1990. Python source code
is available under the GNU General Public License (GPL).
• Python has many web-based assets, open-source projects, and a vibrant
community.
• Python is an open-source, cost-free programming language. It is utilized in
several sectors and disciplines as a result.
❖ Python Basic Syntax
There is no use of curly braces or semicolon in Python programming language.
1. def func():
2. statement 1
3. statement 2
4. …………………
5. …………………
statement N
©Topperworld
, Python Programming
✓ In the above example, the statements that are the same level to the right
belong to the function. Generally, we can use four whitespaces to define
indentation.
❖ Python Features
• Readability: Python's syntax emphasizes code readability and uses
indentation to define code blocks, making it easy to write and understand
code.
• Versatility: Python can be used for various applications, including web
development, data analysis, scientific computing, artificial intelligence,
automation, and more.
• Dynamic Typing: Python uses dynamic typing, allowing variables to
change types on the fly, which enhances flexibility and reduces the need
for explicit type declarations.
• Interpreted Nature: Python is an interpreted language, allowing you to
execute code directly without needing a compilation step, making
development and debugging quicker.
• Large Standard Library: Python comes with a comprehensive standard
library that provides modules and functions for a wide range of tasks,
reducing the need to reinvent the wheel.
• Cross-Platform: Python is cross-platform, meaning code written on one
platform can be easily executed on other platforms without significant
modifications.
• Object-Oriented: Python supports object-oriented programming,
allowing you to structure code using classes and objects for better
organization and reusability.
• Extensive Third-Party Libraries: Python has a vast ecosystem of third-
party libraries and frameworks that simplify complex tasks and accelerate
development.
• Community and Support: Python has a large and active community of
developers who contribute to its growth, provide support, and create
various resources for learning.
©Topperworld