Class 7 Chapter Operator in Python
Class 7 Chapter Operator in Python
3. What is a bug?
1. What is associativity?
Logical Error: The program runs but produces incorrect results due to an error
in logic.
Syntax Error: The program does not run because it violates the rules of the
programming language.
>: Checks if the left value is greater than the right value.
<: Checks if the left value is less than the right value.
>=: Checks if the left value is greater than or equal to the right value.
<=: Checks if the left value is less than or equal to the right value.
The concatenation operator (+) is used to combine two strings into one.
Example: "Hello" + " World" results in "Hello World".
Example: 5 + 3 * 2
if a == b:
else:
print("Condition is True")