10th Python
10th Python
Python : An Introduction
Applications of Python
Python : Keywords & Identifiers
• Some terms in Python have predefined meanings that the computer
automatically assign to them. These phrases are referred to as
Keywords. To avoid any misunderstanding and unclear results,
keywords should be used in the default manner and cannot be
changed at any point of time.
• E.g.: int, string, boolean, for, def, import etc.
• Identifiers are the name given to a variable.
E.g.: a = 10 ; here ‘a’ is an identifier and ‘a = 10’ is a variable.
Python : Variables and Data Types
• Data types refer to the predefined words or keywords that gives the
type to a variable . For e.g.: int, string, boolean etc.
Python : Operators
• Arithmetic Operator : Addition (+), Subtraction (-), Multiplication (*),
Division (/), Integer Division (//), Remainder (%), Raise to power (**)
• Assignment Operator : assignment (=), add equal to (+=), subtract
equal to (-=), multiply equal to (*=), divide equal to (/=).
• Comparison Operator: Greater than (>), Less than (<),equal to (= =),
Not equal to (!=)
• Logical Operator : And operator (And), Or operator (Or), Not operator
(Not).