day1/exercise/pyramid1.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 26 Oct 2009 12:41:40 +0530
changeset 166 ddfd95133adc
parent 64 333092b68926
permissions -rw-r--r--
Taken task based approach for Session 3, day 1. Removed introduction to dictionaries slide and accommodated the same content while solving the problem.

n = input('How many lines? ')
for i in range(1, n + 1):
    for j in range(i):
        print i,
    print