Python Programming
Python Programming
INTRODUCTION
KEYWORDS
COMMENTS
CONSTANTS
VARIABLES
VARIABLE NAMES
Identifiers are the names given to different parts of the program which are
variables, objects, classes, functions, lists, dictionaries, and so forth.
You can assign the same value to multiple variables in a single statement, e.g.,
a = b = c = 10
You can even assign multiple values to multiple variables in a single statement,
e.g.,
x, y, z = 10, 20, 30
It will assign the values order-wise. That means the above statement will assign
values 10 to x, 20 to y, and 30 to z.
DATA TYPES
Every value in Python has a data type that determines the type of
operations that can be performed on it.
ARITHMETIC OPERATORS
Arithmetic operators are used to perform mathematical operations in Python.
LOGICAL OPERATORS
Logical operators are used to perform logical operations in Python.