Feb-03-2018, 09:27 AM
I am trying to make a simple counter that starts at 1 and increments by 1 indefinitely.
I have tried for-loops but I get
I have tried while loops with
I have tried for-loops but I get
int object not iterable
.I have tried while loops with
i += 1
.i = 1 while True: print(i += 1),I get...
Error:File "count.py", line 3
print(i += 1),
^
Why is counting so hard in Python?