Python 3.6.1 >>> %Run L09-iteration.py >>> number_guessing_game() Guess a number: 50 too high Guess a number: 25 too high Guess a number: 12 too high Guess a number: 6 too low Guess a number: 8 correct! >>> %Run L09-iteration.py >>> investmentDoubles(.05) 15 >>> investmentDoubles(.10) 8 >>> investmentDoubles(.30) 3 >>> shift_letter('x', 2) 'z' >>> shift_letter('y', 2) ' ' >>> shift_letter('z', 2) 'a' >>> s = 'xyz' >>> for c in s: print(c) x y z >>> for i in range(5): print(i) 0 1 2 3 4 >>> %Run L09-iteration.py >>> fools_encrypt('abcd') 'aaabbbcccddd' >>> for v in range(4): print(v) 0 1 2 3 >>> for c in 'hello': print(c) h e l l o >>> for c in 'hello': print(c*2) hh ee ll ll oo >>> for c in 'hello': print(shift_letter(c, 1)) i f m m p >>> for c in 'hello': print(shift_letter(c, 1), end='') ifmmp >>> draw_square_with_loop(100) >>> %Run L09-iteration.py >>>