while loop

While
 
allows 
a 
programmer 
to 
repeat
 
a 
block 
of 
statements 
for 
the 
TRUE
 
condition.
It 
verifies 
the 
condition 
before 
executing 
the 
loop.
The 
code 
inside 
while 
block 
is 
repeated 
as 
long 
as 
the 
given 
condition 
remains 
True.
while expression1:
      Statement1
       (Incrementing the value if required)
percentage = 0
while percentage <= 100:
  print('Hacking 10:68:3f:52:71:5b', percentage, '%')
  percentage = percentage + 25

#Python runs this line after the loop stops.
print("System hacked, and you're under the watch of the Red Eye now!")
Hacking 10:68:3f:52:71:5b 0 %
Hacking 10:68:3f:52:71:5b 25 %
Hacking 10:68:3f:52:71:5b 50 %
Hacking 10:68:3f:52:71:5b 75 %
Hacking 10:68:3f:52:71:5b 100 %
System hacked, and you're under the watch of the Red Eye now!