Chain-of-thought to discover reasoning
You're presented with a common math problem to determine the number of fruits in a basket. You want ChatGPT to solve this problem to you, while providing a step by step reasoning.
The get_response() function to communicate with ChatGPT is pre-loaded for you.
Deze oefening maakt deel uit van de cursus
Explainable AI in Python
Oefeninstructies
- Complete the
promptto get a chain-of-thought reasoning for this problem.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Complete the chain-of-thought prompt
prompt = "In a basket, there are twice as many apples as oranges and three times as many oranges as bananas. If there are 6 bananas in the basket, how many fruits are there in total? ____"
response = get_response(prompt)
print(response)