Professional Documents
Culture Documents
Special Literals
None, which means nothing (no value).
X = None
Operators
Operator Types
Unary
Binary
Types of Operators
– Unary Operators
• Unary plus (+)
• Unary Minus (-)
– Binary Operators
• Arithmetic operator (+, -, *, /, %, **, //)
• Relational Operator(<, >, <=, >=, ==, != )
• Logical Operator (and, or)
• Assigment Operator (=, /=, +=, -=, *=, %=, **=, //=)
Punctuators
Syntax:
>>>print(“Python is Fun”)
Statement Output
print("Hello") Hello
print(10*2.5) 25.0
print("I" + "love" + "my" +"country") Ilovemycountry