Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/python
- # -*- coding:UTF-8 -*-
- malas = (u'á', u'é', u'í', u'ó', u'ú', u'ñ')
- f = open("wordlist.txt", "r")
- n = open("wordlist_nuevo.txt", "w")
- while True:
- palabra = f.readline()
- if not palabra:
- break
- for letra in palabra:
- print 'chequeando',palabra
- for item in malas:
- print 'chequeando', malas
- if letra == item:
- status = 0
- break
- else:
- status = 1
- if status == 1:
- n.write(palabra)
- f.close()
- n.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement