return 0
    elif n == 1:
        return 1
    else:
        return fibonacci(n-1) + fibonacci(n-2)
fibonacci(10)`
The 10th Fibonacci number is 55.
> Finished chain.
'The 10th Fibonacci number is 55.'
Training neural net#
This example was created by Samee Ur Rehman.
agent_executor.run("""Understand, write a single neuron neural network in PyTorch.
Take synthetic data for y=2x. Train for 1000 epochs and print every 100 epochs.
Return prediction for x = 5""")
> Entering new  chain...
rtdocs_stable/api.python.langchain.com/en/stable/modules/agents/toolkits/examples/python.html