Pls can anybody help me with a folloving exercise? (I must say that I am really beginer in this field, learning by myself and with daniweb (if sb gives me help))
Pompt the user to enter a string of forbidden letters and also to enter a words. Make a script which shows just the words which don't contains the forbidden letters.
My not fulfiled version is below (It's not finished beacause I don't know how to continue. I am able to go one by one (letter) and verify if the words contains the forbidden letters. Another problem occure if I enter any words, for example : Hello, my name is Vlady => comma and space is considered as fault.
I haven't started to study a topic: List (which is following) so I am not sure if this exercise is possible to solve using different method, thought I did something similar but a text was in list like ).
def avoids(): input1 = raw_input('enter forbidden letters') input2 = raw_input('enter words') for letter in input2: if letter in input1: print 'false' else: print 'true' avoids()