Chapter 5: Problem 3
1: Imagine an alien was just shot down in a game. Create a variable called alien_color and assign it a value of 'green', 'yellow', or 'red'. \- Write an if… # Alien Colors #1: Imagine an alien was just shot down in a game. Create a variable called alien_color and assign it a value of 'green', 'yellow', or 'red'. \- Write an if statement to test whether the alien's color is green. If it is, print a message that the player just earned 5 points. \- Write one version of this program that passes the if test and another that fails. (The version that fails will have no output.)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.