My Code:
android_clean = []
already_added = []
for i in googleplay_data[1:]:
if (i[0] in reviews_max) and (reviews_max[i[0]]==float(i[3])):
if i[0] not in already_added:
android_clean.append(i)
else:
already_added.append(i[0])
What I expected to happen:
I tried doing it a different way from what was guided in the instructions, but expected it to produce the same result.
What actually happened:
But 5 extra entries appeared and I’m not sure why.
Replace this line with the output/error
The advice I would like to get is
- Which part of my above code caused the problem?
- How do I go about figuring where the 5 extra entries are? I suppose if I knew the answer to 1, I would be able to figure this out.