Aug-10-2020, 08:00 PM
I have a file containing words, a word in a line.
I try to print a words containing specific letters ( if all letters given in input are in a word: print word) , I tried different ways but ending up with different errors or no error but no print out anything.
I try to print a words containing specific letters ( if all letters given in input are in a word: print word) , I tried different ways but ending up with different errors or no error but no print out anything.
x = input('letters: ') y= open('noweslowa').read().splitlines() for word in y: if all in x in word: print(word) ~