Sayantan's Blog On Python Programming

PYTHON OPERATORS

PYTHON OPERATORS

PYTHON LOGICAL OPERATORS

PYTHON LOGICAL OPERATORS INTRODUCTION PYTHON supports 3 logical operators: 1. AND2. OR3. NOT LOGICAL AND OPERATOR: LOGICAL AND OPERATOR returns TRUE if both the values are TRUE. Otherwise returns FALSE. PYTHON LOGICAL OPERATORS : Output PYTHON LOGICAL OPERATORS : Output PYTHON LOGICAL OPERATORS : Output LOGICAL OR OPERATOR: LOGICAL AND OPERATOR returns TRUE if any …

PYTHON LOGICAL OPERATORS Read More »

PYTHON ASSIGNMENT OPERATORS

PYTHON ASSIGNMENT OPERATORS INTRODUCTION: PYTHON ASSIGNMENT OPERATORS perform an operation and assign the result. ASSIGN OPERATOR (=): ASSIGN OPERATOR assign a value to a variable. It can be used with any data type. PYTHON ASSIGNMENT OPERATORS : Output ADD AND ASSIGN OPERATOR (+=): ADD AND ASSIGN OPERATORS add two values and assign the result to …

PYTHON ASSIGNMENT OPERATORS Read More »

PYTHON ARITHMETIC OPERATORS

PYTHON ARITHMETIC OPERATORS ADDITION OPERATORS (+): Addition operators are used for adding two or more numbers, either integer or floating point numbers. INTEGER ADDITION: PYTHON ARITHMETIC OPERATORS : Output FLOATING ADDITION: PYTHON ARITHMETIC OPERATORS : Output SUBTRACTION OPERATORS (-): Subtraction operators are used to extract the difference between two or more numbers, either integer or …

PYTHON ARITHMETIC OPERATORS Read More »

PYTHON RELATIONAL OPERATORS

PYTHON RELATIONAL OPERATOR GREATER THAN OPERATOR (>): GREATER THAN operator compare two numbers and return TRUE if the first number is greater than the second number. Otherwise it will return FALSE.So the result is always a Boolean value. INTEGER: PYTHON RELATIONAL OPERATORS : Output PYTHON RELATIONAL OPERATORS : Output FLOATING: PYTHON RELATIONAL OPERATORS : Output …

PYTHON RELATIONAL OPERATORS Read More »