Advertisements
Advertisements
Question
What are the different operators that can be used in Python?
Advertisements
Solution
In computer programming languages operators are special symbols that represent computations, conditional matching, etc. The value of an operator used is called operands. Operators are categorized as Arithmetic, Relational, Logical, Assignment, etc.
APPEARS IN
RELATED QUESTIONS
Which of the following is not a token?
Write short notes on Tokens.
What is a literal?
Explain the types of literals?
What are the assignment operators that can be used in Python?
Explain the Ternary operator with examples.
Write short notes on Escape sequences with examples.
Which of the following is a valid java keyword?
The default value of a boolean variable is ______.
A student executes the following code to increase the value of a variable 'x' by 2.
He has written the following statement, which in incorrect.
x=+2;
What will be the correct statement?
- x+=2;
- x=2
- x=x+2;
