KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Which logical operator(s) is/are used to combine multiple conditions in 'if' statement?

  1. and
  2. or
  3. not
  4. both a and b

Python Control Flow

1 Like

Answer

both a and b

Reason — In Python, the logical operators and and or are used to combine multiple conditions in an if statement. The and operator checks if all conditions are true, while the or operator checks if any one of the conditions is true.

Answered By

2 Likes


Related Questions