Can I use python to define a word like this:
x=raw_input("Enter Word: ")
x=define(x)
print x
Is this possible? If si.. how 2 do it?
This IS just a "what if" question.. so no hate plz.
Can I use python to define a word like this:
x=raw_input("Enter Word: ")
x=define(x)
print x
Is this possible? If si.. how 2 do it?
This IS just a "what if" question.. so no hate plz.
This is essentially the same idea as the answer given by @SamTubb.
If the dictionary.com does not have a definition for the word you enter, you'll get a
HTTPError
.You can probobally do this using the re and urllib2 modules.. Try this code out dawg.
Let me know how it goes!