#!/usr/bin/env python
row = int(raw_input("Enter the number of rows: "))
n = row
while n >= 0:
x = "*" * n
print x
n -= 1
[kd@kdlappy book]$ ./design1.py Enter the number of rows: 5 ***** **** *** ** *
#!/usr/bin/env python
n = int(raw_input("Enter the number of rows: "))
i = 1
while i <= n:
print "*" * i
i += 1
[kd@kdlappy book]$ ./design2.py Enter the number of rows: 5 * ** *** **** *****
#!/usr/bin/env python
row = int(raw_input("Enter the number of rows: "))
n = row
while n >= 0:
x = "*" * n
y = " " * (row - n)
print y + x
n -= 1
[kd@kdlappy book]$ ./design3.py
Enter the number of rows: 5
*****
****
***
**
*