Sorry! Posting Assignment is allowed only for commercial accounts.
def qrange(n): for i in range(1, n): yield i * in = 10print('Squares of numbers from 1 to %d are:' % (n - 1))for i in qrange(n): print(i)