We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
d={'Krisha':[67,68,69],'Arjun':[70,98,63],'Malika':[52,56,60]}
name='Malika'
sum=0
for i in range(len(d[name])):
sum+=d[name][i]
print(float(sum//len(d[name])))
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Finding the percentage
You are viewing a single comment's thread. Return to all comments →
d={'Krisha':[67,68,69],'Arjun':[70,98,63],'Malika':[52,56,60]} name='Malika' sum=0 for i in range(len(d[name])): sum+=d[name][i] print(float(sum//len(d[name])))