light_color

Create a Python code that takes a string `light_color` as input and returns a string indicating what action a driver should take based on the following traffic light colors:
- "Red" means "Stop".
- "Yellow" means "Caution".
- "Green" means "Go".
- Any other color should return "Invalid color".
Red
Total : 0 Discussion
Login