Q. Write the output of the following:
import statistics
L = [20, 40, 50, 60, 20, 30, 40, 70]
Count = L.count (40)
print (count)
x = statistics.mean (L)
print(x)
L. sort ()
print (L)
L.reverse()
print (L)
Answer :-
2
41.25
[20, 20, 30, 40, 40, 50, 60, 70]
[70, 60, 50, 40, 40, 30, 20, 20]
>>>
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )