Python Basic
Introduction
What is Python?
• Python is a popular programming language. It was created by Guido van
Rossum, and released in 1991.
Why Python?
• Python works on different platforms (Windows, Mac, Linux etc).
• Python has a simple syntax similar to the English language.
• Python runs on an interpreter system, meaning that code can be executed
as soon as it is written. This means that prototyping can be very quick.
• Python can be treated in
• procedural way,
• object-oriented
• functional way.
Version
• Latest Version Python 3.13.7
Popular Python IDEs
• PyCharm
• Visual Studio Code (VS Code)
• Spyder
• Jupyter Notebook
PyCharm
• Before we dive into the set-up procedure, let's short talk about why PyCharm
• Feature-wealthy Environment: PyCharm offers a comprehensive set of
capabilities along with debugging, version manipulation integration, and more.
• Smart Code Assistance: It provides wise code final touch and guidelines, which
could appreciably speed up your coding method and reduce mistakes.
• Cross-Platform Support: PyCharm is to be had for Windows, macOS, and Linux
• Community and Professional Versions: You can pick between the unfastened
Community version and the extra characteristic-rich Professional version,
depending on your needs and budget.
Python Variables
Variables are containers for storing data values
A variable is created the moment you first assign a value to it.
Example#1
x = 10
y = “Hello"
print(x)
print(y)
In Python, variables do not have fixed types. They are dynamically typed, meaning the type
can change when you assign a new value.
Example#2
x=4 # x is of type int
x = “10A" # x is now of type str
print(x)