generate functionWed, 30 Nov 2022

find if the given string has the letter "e" in it, and output an alert if so

def has_e(word): for letter in word: if letter == "e": return True return False has_e("ninja")

Questions about programming?Chat with your personal AI assistant