You are on page 1of 7

es

ot
2n
Class 11th Revision Tour

m
er
2t
s1
as
Intro, Basic Terms,Data Types

cl
@
Flow of Control & Practice Questions
am
gr
le
Te
es
ot
2n
Tokens

m
er
2t
The smallest individual unit in a program is known as a Token or a Lexical Unit.

s1
as
Token

cl
@
am
gr
le

KeyWords Literals Identifiers Operators Punctuators


Te
es
ot
2n
Operators

m
er
2t
Keywords

s1
for i in range(1, 10):

as
if (i%2==0):

cl
Identifiers

@
.

print ( i )
am .
gr
le

Literals Punctuators
Te
es
ot
2n
Some details

m
er
2t
● Identifier name must not be a keyword, It can’t start with a number.

s1
● Identifier can only contain number, alphabet or _ (underscore).

as
“Eat Well” ---> Single line string literal.

cl

@
● “Sleep\ ---> Multi line strings
Well” am
gr
● ‘‘‘Study
le

Well’’’
Te
es
ot
2n
Types of Operators

m
er
2t
Arithmetic Operators : + - * % ** //

s1

● Bitwise Operators : & ^ |

as
● Shift Operators : << >>

cl
@
● Identity Operators : is is not
● am
Relational Operators : > < >= <= == !=
● Logical Operators : and or
gr

Assignment Operators : =
le


Te

● Membership Operators : in not in


● Arithmetic-Assignment : /= += -= *= %= **= //=
Operators
es
ot
2n
Operators

m
er
Precedence

2t
s1
as
cl
Note: All operators

@
are calculated left
to right
except **
am
gr
le
Te

Note: Logical Operators


are at the bottom
es
ot
2n
Practice Time

m
er
2t
s1
as
Q1. Evaluate : ( 3>2 ) and ( 3>5 ).

cl
@
am
Q2. Evaluate : (5<10) and (10<5) or (3<18) and not 8<18.
gr
le
Te

You might also like