Commit 03be5922 authored by SHRADDHEYA SHENDRE's avatar SHRADDHEYA SHENDRE

Modifying for precondition of DP

parent 29af3147
......@@ -25,11 +25,14 @@ def map( str ):
return 8
elif str=="Wild Strawberries":
return 9
else:
elif str=="Amadeus":
return 10
else:
return -1
userRatings = ["MyUser", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
for i in range(10):
userRatings[map(temp[0][i])] = temp[1][i]
if map(temp[0][i]) != -1:
userRatings[map(temp[0][i])] = temp[1][i]
data.append(userRatings)
file.close()
userFile.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment