You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
'''Wolfram Alpha Calculatorpip install wolframalphaUses Wolfram Alpha API to calculate input query.input_query - A string, the input query (e.g. "what is 2 + 2?")output - A string, the answer to the input querywolfarm_alpha_appid - your Wolfram Alpha API key'''defWolframAlphaCalculator(input_query: str):
wolfram_alpha_appid='YOUR_WOLFRAM_ALPHA_APPID'wolfram_client=wolframalpha.Client(wolfram_alpha_appid)
res=wolfram_client.query(input_query)
assumption=next(res.pods).textanswer=next(res.results).textreturnf'Assumption: {assumption}\nAnswer: {answer}'
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: