Search
 
SCRIPT & CODE EXAMPLE
 

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")
Comment

PREVIOUS NEXT
Code Example
Python :: global variable not accessible withing thread 
Python :: how to auto create a three dimensional array in python 
Python :: re.split return none in the list 
Python :: custom 3d image generator for segmentation 
Python :: rĂșllandi veltandi standandi sitjandi 
Python :: attribute error rest framework 
Python :: remove inner list from outer list python 
Python :: axes increase fonsize of values python 
Python :: How printe word in python 
Python :: pylatex multicolumn align 
Python :: defaultdict python inport 
Python :: scrollable dataframe 
Python :: convert int to binary python 
Python :: count items in a model django rest 
Python :: count numbers that add up to 10 in python 
Python :: eager tensor to numpy 
Python :: can I activate a function inside the definition of the same function 
Python :: advanced use of tuples in python 
Python :: pyubx 
Python :: return positon of ele in list python 
Python :: if ele in python 
Python :: Start Django Project At http://127.0.0.1:8080/ 
Python :: como agregar una fila a un dataframe con pandas 
Python :: How to Use Sets to Remove Duplicate Items in Other Data Structures 
Python :: write python code in ansible 
Python :: percent change pandas using log 
Python :: numpy retrieve 5 highest value index 
Python :: print backward number from input 
Python :: python c api 
Python :: Python script to do something at the same time every day 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =