Query fecther
#wolfram alpha api
import wolframalpha
# Taking input from user
question = input('Question: ')
# App id obtained by the above steps
app_id = "T7JEE3-8VXU93896P"
# Instance of wolf ram alpha
# client class
client = wolframalpha.Client(app_id)
# Stores the response from
# wolf ram alpha
res = client.query(question)
# Includes only text from the response
answer = next(res.results).text
print(answer)
Comments
Post a Comment