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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started