Python Fundamentals Part-1
Python Fundamentals Part-1
TALS
PART -1
PRESENTED BY
NAVEEN KUMAR
VARSHNEY
PGT CS
OUTLINES
PYTHON CHARACTER SET
TOKENS
Digits 0-9
Space ! @ # $ % ^ & * ( ) _ - + = | \ : ; “ ‘
Special Symbols
<>,.?/
Blank space, tabs, carriage return,
Whitespaces
newline, formfeed
Other
ASCII and Unicode Characters.
Characters
Keyword
• Keywords are the reserved words in Python. We
cannot use a keyword as a variable name, function
name or any other identifier.
• Keywords are case sensitive.
• There are 33 keywords in Python 3.7 .
• All the keywords except True, False and None are in
lowercase.
Keyword
• The list of all the keywords is given below :
False assert del for in or while
True break elif from is pass with
None class else global lambda raise yield
contin excep nonloca retur
and if
ue t l n
impor
as def finally not try
t
1) String literals
2) Numeric literals
3) Boolean literals
4) Special literal None
5) Literal Collections
\b ASCII Backspace(BS)
1. Integer Literals
i. Fractional Form
Ex- a=None
print(a)