jaraco / wolframalpha

MIT License
148 stars 26 forks source link

NameError: name 'do_something_with' is not defined #10

Closed pythongiant closed 7 years ago

pythongiant commented 7 years ago

Hi Here is my code import wolframalpha client = wolframalpha.Client("5L4TR5-3QRQ88JWA3") res = client.query('temperature in Washington, DC on October 3, 2012') for pod in res.pods: do_something_with(pod) for pod in res.pods: for sub in pod.subpods: print(sub.text) print(next(res.results).text)

and I have an error Traceback (most recent call last): File "main.py", line 6, in <module> do_something_with(pod) NameError: name 'do_something_with' is not defined

jaraco commented 7 years ago

do_something_with is a stand-in for your code. Just delete that for loop.

pythongiant commented 7 years ago

thnx I just found out that