Guided Project 1: Getting 0 duplicates under ios apps

Screen Link:

My Code:

unique_ios=[]
duplicate_ios=[]
for each in ios:
    element=each[0]
    if element in unique_ios:
        duplicate_ios.append(element)
    else:
        unique_ios.append(element)
print (duplicate_ios)
duplicates=len(duplicate_ios)
print ('Number of duplicates:' + str(duplicates))unique_ios=[]
duplicate_ios=[]
for each in ios:
    element=each[0]
    if element in unique_ios:
        duplicate_ios.append(element)
    else:
        unique_ios.append(element)
print (duplicate_ios)
duplicates=len(duplicate_ios)
print ('Number of duplicates:' + str(duplicates))

What I expected to happen:
Number of duplicate rows

What actually happened:

Number of duplicates:0

Paste output/error here

hey @dinishanto

Welcome to DataQuest Community!

I don’t understand why is your code repeating itself. I assume it’s a paste error on the post.

Anywho, have you verified the column index number that you have used is correct? each[0]!?

please check which column has the app name.

it may be a bit complex for now but if you can, refer to this post: