Python Ch1
Python Ch1
Python
Introduction
Introduction
Escape Characters:
Escape Characters
To insert characters that are illegal in a
string, use an escape character. An escape
character is a backslash (\) followed by the
character
>>>syou= “we want
aretothe
insert.
so-called ''Vikings''
from the north”
SyntaxError: invalid syntax
To fix this problem, use the escape
>>>s =
character \" ''we are the so-called \''Vikings\''
from the north''
'we are the so-called ''Vikings'' from the
north'
Types of Operators:
1. Arithmetic Operators
2. Comparison/Relational Operators
3. Logical Operators
4. Bitwise Operators
5. Assignment Operators
6. Identity Operators
7. Membership
Ashika Patel Operators
Dept. of Computer Engineering LJ
Introduction
Arithmetic Operators: