Loops and text
You can use text in loops as well as numbers. Look at the code below –
a = "*"
while len(a) <= 5:
print a
a = a + "*"
The condition is checking the size (length) of the string. Each loop will add a extra * to the string. This is what produces the pattern!
Change the code above so it will add two stars each loop.
Output: (clear)











