Profitable App Profiles for the App Store and Google Play Markets (SLIDE 4)

Please can anyone explain the logic here am kind confused.

duplicate_apps = []
unique_apps = []

for app in android:
    name = app[0]
    if name in unique_apps:
        duplicate_apps.append(name)
    else:
        unique_apps.append(name)
1 Like

Hi @Oracle,

Are you getting any error or do you just wish to understand how the code works?

Best,
Sahil