Program to print following:
   *
  **
 ***
****
My program:
for i in range(1,5):
    for j in range(1,5-i):
        print '',
    for k in range(1,i+1):
        print "*",
    print 
It prints:-
   *
  * *
 * * *
* * * *
What is the problem?
 
     
    