Comparision between For and While Loops

For 
Loop
For 
loop 
is 
usually 
called 
a 
Counting 
loop
, 
because 
we 
specify 
the 
number 
of 
times 
we 
want 
to 
run 
the 
loop 
beforehand.
for val in string:
        <statement(s)>
While 
loop
While 
loop 
is 
usually 
called 
a 
conditional 
loop
 
because 
it 
depends 
on 
a 
condition. 
It 
runs 
as 
long 
as 
the 
condition 
remains 
true, 
and 
it 
breaks 
when 
the 
condition 
becomes 
false.
while <condition>:
    <statement(s)>
for x in "banana":
  print(x)
master = 'ZOG'
index = 0
while index < len(master):
    letter=master[index]      
    print(letter)
    index=index+1