Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

We want to estimate the cost of painting a property. Interior wall painting cost is Rs.18 per sq.ft. and exterior wall painting cost is Rs.12 per sq.ft.

intr = int(input())
extr = int(input())


i_l=[float(input()) for _ in range(intr)]
e_l=[float(input()) for _ in range(extr)]

cost = (sum(i_l) * 18) + (sum(e_l) * 12)
print(cost," INR")
 
PREVIOUS NEXT
Tagged: #We #estimate #cost #painting #Interior #wall #painting #cost #exterior #wall #painting #cost
ADD COMMENT
Topic
Name
3+4 =