------------------------------------------------------------------------------
MC logo
While Loop
[^] Code Examples
------------------------------------------------------------------------------
<<If Statement ctl.py For Loop I>>
#!/usr/bin/python3

# Simple while loop
a = 0
while a < 15:
    print(a, end=' ')
    if a == 10:
        print("made it to ten!!")
    a = a + 1
print()
<<If Statement For Loop I>>