# File: Erin/helloloop.py # Write n times something. Loops: for and while """ 0 Hello 1 Hello 2 Hello 3 Hello 0 Hello Again 1 Hello Again 2 Hello Again """ def helloFor(n): for i in range(n): print(i,"Hello") def helloWhile(n): i = 0 while True: print(i,"Hello Again") i = i + 1 if (i == n ): break def main(): helloFor(4) # prints 4 times using a FOR loop helloWhile(3) # prints 3 times using a WHILE loop main()