KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

In Python, an 'if-elif-else' can be used to implement the 'switch-case' paradigm.

Python Control Flow

2 Likes

Answer

True

Reason — In Python, the if-elif-else statement allows checking multiple conditions one after another, which performs the same role as a switch-case statement by executing different blocks of code based on different conditions.

Answered By

1 Like


Related Questions