subject

Complete the function by filling in the missing parts. The color_translator function receives the name of a color, then prints its hexadecimal value. Currently, it only supports the three additive primary colors (red, green, blue), so it returns "unknown" for all other colors. m 1 - def color_translator(color): 2. if _== "red": 3 hex_color = "#ff0000" 4- elif == "green": 5 hex_color = "#00ff00" elif == "blue": hex_color = "#0000ff" in 0 hex_color = "unknown" return _ . 12 13 14 15 16 17 print(color_translator("blue")) # Should be #0000ff print(color_translator ("yellow")) # should be unknown print(color_translator("red")) # Should be #ff0000 print(color_translator ("black")) # should be unknown print(color_translator("green")) # Should be #00ff00 print(color translator("")) # should be unknown Run Reset

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
Duplicating objects creates copies that a. move differently than the original object b. erase the original object c. look and act like the original object d. add events to a game
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Why is hard disk space important to an audio engineer? why are usb ports and firewire ports useful for an audio engineer? explain in 2-3 sentences. (3.0 points) here's a list of different audio software: ableton live apple inc.'s garageband apple inc.'s logic studio digidesign's pro tools propellerhead sofware's reason sony creative software's acid pro steinberg cubase steinberg nuendo choose one of the software programs listed above, and then go to that software program's web site. read about what the software program is used for, and then write 4-5 sentences about what you learned. (10.0 points) which type of software license is the most limiting? why? explain in 2-3 sentences. (3.0 points) when sending a midi channel voice message, how can you control the volume of the sound? explain in 2-3 sentences. (4.0 points)
Answers: 1
question
Computers and Technology, 25.06.2019 08:20
In the following table, column a is column b is and column c is
Answers: 1
You know the right answer?
Complete the function by filling in the missing parts. The color_translator function receives the na...
Questions
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Chemistry, 18.09.2020 01:01
question
Social Studies, 18.09.2020 01:01
question
Spanish, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01
question
Social Studies, 18.09.2020 01:01
question
Mathematics, 18.09.2020 01:01