Profitable App Guided Project Query

for guided project finding non english word, when i use function that worked but after that when i new object list for english word then i get result column different in different time not the same column for google data, but for app data shows same column, thats fine.

def is_english(x):
    count = 0
    for letter in x:
        if ord(letter) > 127:
            count += 1
    if count > 3:
        return False
    else:
        return True

print(is_english('Instagram'))
print(is_english('爱奇艺PPS -《欢乐颂2》电视剧热播'))
print(is_english('Docs To Go™ Free Office Suite'))
print(is_english('Instachat 😜'))


android_english = []
ios_english = []

for app in unique_apps[1:]:
    name = app[0]
    if is_english(name):
        android_english.append(app)
        
for app in apple_app[1:]:
    name = app[1]
    if is_english(name):
        ios_english.append(app)
        
explore_data(android_english, 0, 3, True)
print('\n')
explore_data(ios_english, 0, 3, True)

Hi @mamun216

Your code looks good.
Are you getting these results?
No. of English Google Apps: 9614
No. of English ios Apps: 6183?

yes, it is. rows number is fine. now fixed column. thanks

1 Like