Home > Software design >  Function not returning False when I think it should
Function not returning False when I think it should

Time:12-14

Writing a python function to iterate through strings. I want it to return False if any non-english characters are in the string

def check_if_english(app_name):
    for character in app_name:
        if ord(character) > 127:
            return False
        else:
            return True
        
        
print(ord('           
  • Related