'''lecture_20_for_as_while.py Convert a for loop into a while loop Oliver W. Layton CS 151: Computational Thinking: Visual Media Spring 2021 ''' # while loop that does the same thing as below for loop i = 0 while i < 10: print(i) i += 1 # i = i + 1 print(' ---') for i in range(10): print(i)