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++
New Questions |
---|
trustworthy online casino in New Zealand - C
|
SSM Exam - Other
|
SPC Exam - Other
|
SAFe-Practitioner Exam - Other
|
SAFe-Agilist Exam - Other
|
P_SAPEA_2023 Exam - Other
|
POPM Exam - Other
|