Python programming Write a program that shows all words in t
Python programming. Write a program that shows all words in the dictionary /users/Downloads/dictexample starting with the first command line argument.
Solution
#open file
fo = open(\"../users/Downloads/dictexample/dictexample.txt\")
letter = input(\"Enter a letter to search in dictonary : \");
while True:
str = fo.readline()
for t in str.split() :
if t.lower().startswith(letter.lower()):
print (t)
# Close opend file
fo.close()
