You are viewing a single comment's thread. Return to all comments →
Does anybody know why this doesn't work in Python 3?
When you put in 6 instead of max(arr) it works, but not if you put max(arr):
N = int(raw_input())
arr = map(int, raw_input().split())
print max([x for x in arr if x != 6])