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")
Here is what the above code is Doing:
1. Taking input for number of internal and external marks
2. Taking input for internal and external marks
3. Calculating the cost of the marks
4. Printing the cost