In [6]:
mi= [14574.49, 7606.46, 8611.41, 9175.41, 8058.65, 8105.44, 11496.28, 9766.09, 10305.32,
14379.96, 10713.97, 15433.50]
me = [12051.82, 5695.07, 12319.20, 12089.72, 8658.57, 840.20, 3285.73, 5821.12, 6976.93,
16618.61, 10054.37, 3803.96]
mp=list([])
for i in range(0,len(mi)):
mp.append(mi[i]-me[i])
mpat=list([])
for i in range(0,len(mp)):
mpat.append(mp[i]-mp[i]* 0.3)
In [7]:
mpat
Out[7]:
In [9]:
round(2.56893,1)
Out[9]:
In [11]:
mpat=[round(i,2) for i in mpat]
In [12]:
mpat
Out[12]:
In [24]:
proftmargin=list([])
for i in range(0,len(mpat)):
proftmargin.append(mpat[i]/mi[i])
In [15]:
proftmargin
Out[15]:
In [27]:
proftmargin=[round(i*100) for i in proftmargin]
In [28]:
proftmargin
Out[28]:
No comments:
Post a Comment