Me and a friend setup a competition between ourselves with the goal: Print out all numbers in the Fibonacci sequence that are less than or equal to 3000 using Python. The winner was whoever could accomplish this in the least amount of lines of code. As soon as I began writing code I wondered if we should also take into account cleanliness and readability in the competition requirements. After pondering this more, I decided to write 3 different ways to accomplish this task. I would love it if you would please judge each of them and tell me which one you feel is "better" Python code and also give ideas on how to possibly improve the code.
1.
fib = [0, -1]
while fib[0] < 3000:
print(fib[0])
fib[1] = fib[0] - fib[1]
fib[0] += fib[1]
2.
fib = [0, -1]
while fib[0] < 3000:
print(fib[0]) ; fib[1] = fib[0] - fib[1] ; fib[0] += fib[1]
3.
lol = '1\n1\n2\n3\n5\n8\n13\n21\n34\n55\n89\n144\n233\n377\n610\n987\n1597\n2584' ; print(lol)