Question: use code python Decorating the Wall When an exhibition is going to be held, you are asked to cover the entire dirty wall with colored

use code python

Decorating the Wall

When an exhibition is going to be held, you are asked to cover the entire dirty wall with colored stickers: red, green and blue. Each wall is divided into columns and rows.

The top left corner always starts with red. From left to right it is always in sequence after green red, after green blue, after blue red. From top to bottom it is always sequential after red green, after green blue, after blue red.

You will be given a measure of the width of each consecutive column and the height of each consecutive row (in "jen" units).

Example: row = "2 4 2 3 1 1 2"

column = "1 3 2 3 5"

# Sample input row = "2 4 2 3 1 1 2" # example column = "1 3 2 3 5" # example r, g, b = 0, 0, 0 # total area of red, green and blue # Your program

def area_ total (b, k)

return r, g, b r, g, b = area_total (row, column) print (r, g, b) # 62 82 66

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!