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: hi, make a very short python script to print fibo numbers
- Assistant
Certainly! Below is a very short Python script that prints Fibonacci sequence numbers:
pythona, b = 0, 1 while a < 100: print(a, end=' ') a, b = b, a + bRunning this script will print Fibonacci numbers starting from 0 until the largest Fibonacci number less than 100. If you want the sequence to go up to a different value, you can change the number
100to your desired upper limit.