Write the equivalent python expression for the following expressions.
i) √a^2+b^2+c^2
ii) (p + q) / (r+s)^4
Answers
Answered by
5
Answer:
(2) e) Write the equivalent python expression for the following expressions. (2) i) √a2+b2+c2 ii) (p + q) / (r+ s)4 f) What will be the output produced by following code? (2) a,b,c,d =9.2 , 2.0 , 4 , 21 print (a/2) print(a//4).
Answered by
1
medals = {'Japan':41, 'Russia':56, 'South Korea':21, 'United States':121, 'Germany':42, 'China':70}
def g(k,d):
return d[k]
ks = medals.keys()
top_three = sorted(ks,key=lambda x : g(x,medals),reverse = True)
Similar questions