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.
Questo esercizio fa parte del corso
Explainable AI in Python
Istruzioni dell'esercizio
- Complete the
promptto get a chain-of-thought reasoning for this problem.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# 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)