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])
^ works
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
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):
^ works