gpt-4-1106-preview· openai
Suzhen/CodeChat
START OF PREVIOUS DISCUSSION END OF PREVIOUS DISCUSSION
- User
START OF PREVIOUS DISCUSSION END OF PREVIOUS DISCUSSION user: make a very short script for fibo numbers
- Assistant
Certainly! Here's a very short Python script to generate Fibonacci numbers using a function with a loop:
pythondef fibo(n): a, b = 0, 1 for _ in range(n): print(a, end=' ') a, b = b, a + b fibo(10) # Change 10 to however many Fibonacci numbers you wantRunning this script will print the first 10 Fibonacci numbers in a single line.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.