< Back

Lab 14: Test Practice


Yellow Sun

Superman is powered by our Yellow sun. While the most common way to remove Superman's power is by using Kryponite, another easy way to accomplish this is to remove the sun. Write a program that will take the following, expertly drawn image and remove the sun.

In a file called remove_sun.py, write a function called remove_sun(a_picture). This function should replace all yellow pixels (red = 255, green = 255, blue = 0) with blue pixels (red = 0, green = 0, blue = 255).