Python Interviews: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 62:
Reverse the list:
a.reverse()
Max of List(print runner-ups score):
arr = [1,4,2,6,7,6]
mx = max(arr)
b = [j for j in arr if j != mx]
print(max(b))
|