From 3a4c4543601ef6a2bfbbab1556f9cfa85f7a4252 Mon Sep 17 00:00:00 2001 From: cheeks <134818917+leftovertoast@users.noreply.github.com> Date: Wed, 22 Jan 2025 15:27:53 -0500 Subject: [PATCH] Completed 5-3 Alien Colors --- Chapter_05/5-03_alien_colors.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Chapter_05/5-03_alien_colors.py diff --git a/Chapter_05/5-03_alien_colors.py b/Chapter_05/5-03_alien_colors.py new file mode 100644 index 0000000..ebd6a32 --- /dev/null +++ b/Chapter_05/5-03_alien_colors.py @@ -0,0 +1,16 @@ +# Exercise 5-3 Alien Colors +# Learning Objective: Utilize an if statement to determine the color of an alien in a game. + + +#passes +alien_color = 'green' + +if (alien_color == 'green'): + print('Player just scored 5 points!') + +#fails +if (alien_color == 'yellow'): + print('Player just scored 10 points!') + + +