Python Interviews: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 62: Line 62:
Reverse the list:
Reverse the list:
a.reverse()
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))