#!/usr/bin/env python

"""
CS373: Quiz #24 (5 pts)
"""

""" ----------------------------------------------------------------------
1. What is the output of the following program?
   (4 pts)

.a.
.b.
True
.c.
my_range()
2
.d.
3
.e.
"""

def my_range (b, e) :
    print "my_range()"
    while b != e :
        yield b
        b += 1

print ".a."

p = my_range(2, 5)

print ".b."

q = iter(p)
print p is q

print ".c."

v = p.next()
print v

print ".d."

v = p.next()
print v

print ".e."
