On this assignment: Strings and conditionals 1
Check if word contains letter. If it does -print True. If not - print False.
This is my code. It works as requested. What have I done wrong?
def letter_check(word, letter): for index in word: if index == letter: print(True) return return print(False) letter_check("strawberry", "a")