Hey Alan!  Is there a dict program for the MacOS flavour of *nix?  That's a
slick little bit of code but it doesn't work on my Mac:

robertk01$ dict
-bash: dict: command not found

but it works fine when I ssh into a Linux box...


> 
> OTOH, if you are happy with those ideas:
> 
>>> word = raw_input("enter your word >>")
>>> put, get=os.popen4("dict -d wn " + (word))
>>> for lines in get.readlines():
>>>     print lines

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to