Fix project, now use python 3.

This commit is contained in:
Bert Peters
2015-12-14 00:29:02 +01:00
parent cf7d12fbf0
commit 0b94c1e7dc
14 changed files with 35 additions and 34 deletions

View File

@@ -25,7 +25,7 @@ maxHappiness = 0
maxWithMe = 0
# Compute happiness with everyone present
for permutation in permutations(ratings.keys()):
for permutation in permutations(list(ratings.keys())):
happiness = 0
withMe = 0
@@ -46,5 +46,5 @@ for permutation in permutations(ratings.keys()):
maxWithMe = max(maxWithMe, withMe)
print maxHappiness, maxWithMe
print(maxHappiness, maxWithMe)