Question: What went wrong with my python on this assignment? My code: The Problem: Thanks! Really appreciate it. filenameinput(Enter the name of the file containing all

What went wrong with my python on this assignment?

My code:

What went wrong with my python on this assignment? My code: The

The Problem:

Problem: Thanks! Really appreciate it. filenameinput("Enter the name of the file containingall of the words: ") 1 2 f open(filename, "r") 4 allwords = set () for word in f. readlines) all words.add(word.strip()) lettersinput ("Please enter your letters separated by a space: "). split() wordset

Thanks! Really appreciate it.

filenameinput("Enter the name of the file containing all of the words: ") 1 2 f open(filename, "r") 4 all words = set () for word in f. readlines) all words.add(word.strip()) letters input ("Please enter your letters separated by a space: "). split() wordset = permutation (letters) print (letters) 10 12 13 14 15 for word in wordset : if word in all_words: print(word)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!