anagram help

Back to General discussions forum

Diana Lopez     2025-06-17 20:20:25

hi. I need help with the anagram problem. There is a Dictionary and i already download it, but i´m trying to use it in my code and i don't know how. I asked in internet and it says i need to use with open(nombre_archivo, 'r') as f: but its not working. Why?

gardengnome     2025-06-17 20:33:55
User avatar

Try something like words = [word.strip() for word in open(nombre_archivo, 'r')].

Please login and solve 5 problems to be able to post at forum