What students Say?
Here are the stdudents...
An Identifier is a name used to identify a variable, function, class, or other object. It serves as the basic building block of a Python program.
# Valid
student_name = "John"
val_1 = 50
# Invalid
1st_rank = "A"
my-variable = 10
Unlike many other programming languages, Python uses indentation to define the structure of code blocks instead of curly braces {}.
if statement).IndentationError.if 5 > 2:
print("Five is greater than two!")
# These lines are in the same block
Variables are reserved memory locations to store values. This means that when you create a variable, you reserve some space in the memory.
Python variables do not need explicit declaration to reserve memory space. The declaration happens automatically when you assign a value to a variable with the equal sign (=).
counter = 100 # An integer assignment
miles = 1000.0 # A floating point
name = "John" # A string
print(counter)
print(miles)
print(name)
Python allows you to assign a single value to several variables simultaneously or assign multiple objects to multiple variables.
a = b = c = 1
x, y, z = 1, 2, "abc"
user_age instead of ua).A constant is a value that does not change during the execution of a program. Once defined, its value should remain the same.
Python does not have "true" constants that are protected from change. Instead, programmers use a naming convention: constants are written in UPPERCASE letters.
PI = 3.14159
GRAVITY = 9.8
MAX_MARKS = 100
# Usage example
GST_RATE = 0.18
price = 1000
total = price + (price * GST_RATE)
| Feature | Constant | Variable |
|---|---|---|
| Value Change | ❌ No | ✅ Yes |
| Naming | UPPERCASE | lowercase |
| Example | PI = 3.14 | age = 15 |
Python is a dynamically-typed language. This is one of its most powerful features, allowing for high flexibility during development.
In statically-typed languages (like Java or C++), you must declare the type of a variable before using it. In Python, the type is determined at runtime based on the value assigned to the variable.
# The variable 'data' changes type automatically
data = 10
print(type(data)) # Output: <class 'int'>
data = "Now I am a string"
print(type(data)) # Output: <class 'str'>
data = [1, 2, 3]
print(type(data)) # Output: <class 'list'>
Keywords are reserved words in Python that have a special meaning to the interpreter. You cannot use a keyword as a variable name, function name, or any other identifier.
True, False, and None.| False | None | True | and | as |
| assert | async | await | break | class |
| continue | def | del | elif | else |
| except | finally | for | from | global |
| if | import | in | is | lambda |
| nonlocal | not | or | pass | raise |
| return | try | while | with | yield |
You can see the list of keywords directly in your Python environment by using the following code:
import keyword
print(keyword.kwlist)
Here are the stdudents...
Empower your tech dreams with us. Get in touch!




