Ans of programming Assignment:
def rainaverage(l):
(t1,t2,t3)=({},{},{})
for i,j in l:
if i not in t1:
(t1[i],t2[i])=(j,1)
else:
(t1[i], t2[i]) = (t1[i]+j,t2[i]+1)
for i,j in t2.items():
t3[i]=float(t1[i]/j)
l2=[(i,j) for i,j in t3.items()]
l2.sort(key=lambda a:a[0])
return l2
def listtype(l):
return type(1) == type([])
l3=[]
def flatten(l4):
for i in l4:
if listtype(i):
flatten(i)
else:
l3.append(i)
return l3
Evo Fox (by Amkette) Fireblade Gaming Wired Keyboard with LED Backlit, 19 Anti-Ghosting Keys and Windows Lock Key (TKL) (Black)
Rating - 3.8 to 4
Price - 800₹ to 1000₹
for latest information click - https://amzn.to/3q8vvsv
No comments: