def echeck(a_string): for character in a_string: asci = ord(character) if asci > 127: return False else: return True echeck('Instachat 😜') echeck('爱奇艺PPS -《欢乐颂2》电视剧热播')
What I expected to happen:
I expected the output to be False, and require my code to be edited to work better with English names with more characters. Seems to be working very well but the exercise said I should run into problems.
What actually happened:
Not sure why this is happening, my code is a little less efficient than the solution notebook but seems to otherwise be identical. Am I missing something obvious here? Function seems to properly output false in app names with other non-English characters.