O'Reilly logo
  • Longxiang Lyu thinks this is interesting:

5-5. Alien Colors #3:

From

Cover of Python Crash Course

Note

alien_color = 'red'
if alien_color == 'green':
earn = 5
elif alien_color == 'yellow':
earn = 10
elif alien_color == 'red':
earn = 15
print("shot down an alien earned you $" + str(earn) + ".")