Python Operators:

 Operators are used for carrying out operations on values and variables.

  • Arithmetic Operators
  • Assignment Operators
  • Relational Operators
  • Logical Operators
Arithmetic Operators: 
    Python programming language supports different kinds of arithmetic operators for both integer and floating point like addition, subtraction, multiplication, division and so on.
Assignment Operators: 
    
An assignment operator is used to assign a value to a variable.
Relational Operators: 
    Relational operators evaluate the given comparison expression and return the relation of left and right operands as either True or False. Python supports the following relational or comparison operators:

Logical Operators: 
    Logical operators are used for performing AND, OR and NOT operations. It either returns True or False according to the condition:


Comments

Popular posts from this blog

Guessing the Number Game

Find the final amount after Discount

Simple Arithmetic Calculator - User Defined Function