The parentheses on the while
loop are not Python syntax, try:
while a <= 999...: # colon, not parenthesis
a += 1 # not just a + 1, you need to assign back to a too
print(...)
Or, more Pythonic:
for a in range(999...):
print(...)
2
solved (“”) printing not working in python [closed]