Computer Science
Which of the following is a valid relational operator in Python ?
- +
- **
- >
- and
Python Data Handling
1 Like
Answer
>
Reason — The ">" symbol is a valid relational operator in Python. It checks if the value on the left side is greater than the value on the right side and returns a Boolean result (True or False) accordingly.
The other options provided are:
"+" (plus) is an arithmetic operator used for addition. "**" (double asterisk) is an arithmetic operator used for exponentiation. "and" is a logical operator used for combining conditions in boolean expressions.
Answered By
3 Likes
Related Questions
Identify the valid declaration of L:
L = {1: 'Mon', 2 : '23', 3: 'hello', 4: '60.5'}
- dictionary
- string
- tuple
- list
Which value type does input() return ?
- Boolean
- String
- Int
- Float
Write the output of the following code:
a = 10/2 b = 10//3 print(a, b)
- 5 3.3
- 5.0 3.3
- 5.0 3
- 5 4
Which of the following is a valid variable name ?
- Student Name
- 3Number
- \%Name\%
- Block_number