Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- IMPORT RANDOM
- X = ['marcassin', 'disquette', 'macbook', 'cartouche', 'magnum', 'revolver', 'asiatique', 'eventail', 'illisible', 'intelligent', 'exigeant', 'atroce']
- mat = RANDOM.choice(X)
- faux, vrai = [], []
- VAR = raw_input('Choisissez une lettre : ')
- IF VAR.isalpha() AND len(VAR) != 1:
- print 'Je vous ai demandé de choisis UNE LETTRE.'
- VAR = raw_input('Choisissez une lettre : ')
- IF VAR in mat:
- vrai.append(VAR)
- ELSE:
- faux.append(VAR)
- print ' '.join(lettre in vrai AND lettre OR '_' FOR lettre in mat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement