my_list = [\'b\',\'a\',\'d\'] while True: inp_1 = input(\'Guess a letter\') if inp_1 in my_list: print(f\'{inp_1} is in word.\')
Ins