You are viewing a single comment's thread. Return to all comments →
Python 3
def marcsCakewalk(calorie): return sum([(2**i)*w for i,w in enumerate(sorted(calorie, reverse=True))])
Marc's Cakewalk
You are viewing a single comment's thread. Return to all comments →
Python 3