Unable to run cell -> Cell always stuck at [*]

Screen Link:
https://app.dataquest.io/m/350/guided-project%3A-profitable-app-profiles-for-the-app-store-and-google-play-markets/7/removing-non-english-apps-part-two

My Code:

android_english = []
ios_english = []

for app in android_clean:
    name = app[0]
    if is_english(name):
        android_english.append(app)
        
for app in ios_body:
    name = app[1]
    if is_english(name):
        ios_body.append(app)

explore_data(android_english, 0, 3, True)
print('\n')
explore_data(ios_body, 0, 3, True)

What I expected to happen:
Expected to create list with English naming apps only.

What actually happened:
Nothing happened. Cell is unable to run and stuck at

Replace this line with the output/error

hey @kangkeeching

you are appending the app name back to the original list, thereby creating an infinite “for loop”.

This code will continuously add the app name to your app_list.

for app in ios_body:
    name = app[1]
    if is_english(name):
        ios_body.append(app) # ios_body instead of ios_english!
2 Likes

Ah you are right! What a silly mistake.

Thanks mate!

1 Like

just happened to me as well haha, thought i had to swap out my laptop for a stronger maschine :sweat_smile:

1 Like