?>
profile image
Announcements
No new announcements.
mentora icon
bookmark
Table of Contents

    Operator in Python Programming Language

    In this lesson, we are going to look at what is an operator and will learn the names of different types of operators.

    What is Operator

    An operator in Python is a symbol that helps us to perform specific mathematical and logical computations on operands. In other words, we can say that an operator operates the operands.

    Video Explanation

    Click the button below to watch the explanation.

    video image

    Now let's see an example for more understanding.

    Example
    a = 5
    b = 9
    c = a + b

    Here, + is an operator known as the addition operator and variables a, b are operands. The addition operator tells the Python interpreter to add the value of both the operands a and b and store the result in variable c. So the value of c will be 14.

    Python has many built-in operator types, but the most important operator types are:

    • Assignment Operators
    • Arithmetic Operators
    • Relational Operators
    • Logical Operators
    • Identity Operators
    • Membership Operators

    We will discuss all the operator types in our upcoming lessons.

    Test Your Knowledge

    Attempt the questions in the exercise to check whether you have understood the lesson clearly.

    Test Your Knowledge
    Mentora Question Asked: 0 / 20

    Hi, I’m Mentora!

    I’m your personal AI tutor from Dremendo. Ask me anything, and I’ll help you understand it in a simple and easy way.