'conditional if statement color is in the list and prints multiple lines during and after the conditional. [red, orange, yellow, green, blue]

Use the list given to write a conditional if statement that checks if a color is in the list and prints multiple lines during and after the conditional. [red, orange, yellow, green, blue]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source