Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- used_chars = []
- finales = []
- palabrillas = palabras.keys()
- available = chosen
- for word in palabrillas:
- print "Comienza el ciclo"
- print "Available contiene: " + str(available)
- used_chars[:] = []
- actual_word = list(word)
- print "Actual word es: " + str(actual_word)
- for current_char in actual_word:
- if current_char in available:
- print "Si, la " + str(current_char) + " esta en " + str(available)
- used_chars.append(current_char)
- print "Appendee " + current_char
- available.remove(current_char)
- print "Las available ahora son " + str(available)
- sorted(actual_word)
- sorted(used_chars)
- available[:] = []
- for i in range(len(chosen)):
- available[i] = chosen[i]
- print "Termina el ciclo"
- if actual_word == used_chars:
- finales.append(word)
- print "Appendee " + word + " a las finales"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement