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 python script to print fibo numbers
- Assistant
Certainly! Below is a very short Python script to print the first few Fibonacci numbers:
a, b = 0, 1 while a < 10: print(a, end=' ') a, b = b, a + bThis script will print Fibonacci numbers smaller than 10: 0 1 1 2 3 5 8. If you want more numbers, just change the condition in the
whileloop to a higher number.