I am finding it increasingly difficult to find the letters from a word that the user generated. The code I am using is on linear searches and can only display letters I have inputed. Edit: To improve my question would like to know if I could search for a letter from the wordlist created in choice 1.
if choice == "1": print ("Enter a Word") minput= input()
wordList= list (minput)
print (wordList)
menu()
if choice== 2
letter=('a,b,c,d,e,f,g,h,f,h') print () counter=0 searchLetter=input('Enter letter to find\t')
while counter<len(letter) and searchLetter!=letter[counter]:
counter+=1
if counter <len(letter):
print(searchLetter,'found')
else:
print(searchLetter, ' Not found')