CODE: a=1 ------------------------- root@kali:~# python2 1.py
while a<4:
print "Hello world"
a ++
File "1.py", line 4
a ++
^
SyntaxError: invalid syntax
root@kali:~#
while a<4:
Let me explain what it does, You used a while loop with a condition (While A is less than 4), A is 1 and less than 4.
Use this,
while a > 4:
print "Hello world"
a++