Skip to content

Instantly share code, notes, and snippets.

@yazdipour
Last active September 12, 2017 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yazdipour/7243abb5dcce340ba488c959400147e7 to your computer and use it in GitHub Desktop.
Save yazdipour/7243abb5dcce340ba488c959400147e7 to your computer and use it in GitHub Desktop.
Use this to open list of word in dictonary
import webbrowser
mom="http://dictionary.cambridge.org/dictionary/english/"
fs="line.txt"
f=open(fs, 'r+')
lines = tuple(f)
f.close()
for l in lines:
l=l.replace('\n','').lower()
if len(l)>1:
webbrowser.open(mom+l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment