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 very short python script for fibo numbers
- Assistant
Certainly! Below is a very concise Python script that generates Fibonacci numbers:
a, b = 0, 1 while a < 1000: # limiting to Fibonacci numbers less than 1000 print(a, end=' ') a, b = b, a + bThis script uses tuple unpacking to update the Fibonacci numbers within the loop and will print Fibonacci numbers less than 1000.