Python Quiz 36 #learningpython #pythonquiz

preview_player
Показать описание
In Python,
Which expression correctly determines if a car can proceed the light is green, there are no pedestrians crossing, and there are no oncoming vehicles?

(a) (light == "green") and not pedestrians_crossing and not oncoming_vehicles
(b) light == "green" or not pedestrians_crossing or not oncoming_vehicles
(c) (light == "green" or not pedestrians_crossing) and not oncoming_vehicles

Logical Operator #pythonoperators #learningpython #python
Рекомендации по теме