Next


Python Online Compiler

							
							


111111
22222
3333
444
55
6



for x in range(1,7,1):
    for y in range(6,x-1,-1):
            print(x, end="")
    print(end="\n")





123456
12345
1234
123
12
1



for x in range(7,1,-1):
    for y in range(1,x,1):
            print(y, end="")
    print(end="\n")





AAAAAA
BBBBB
CCCC
DDD
EE
F



for x in range(0,7,1):
    for y in range(5,x-1,-1):
            print(chr(x+65), end="")
    print(end="\n")







FEDCBA
FEDCB
FEDC
FED
FE
F




for x in range(0,7,1):
    for y in range(5,x-1,-1):
            print(chr(y+65), end="")
    print(end="\n")






       
      *
     **
    ***
   ****
  *****
 ******




for x in range(0,7,1):
    for y in range(7,0,-1):
        if(x>=y):
            print("*", end="")
        else:
            print(" ", end="")
    print(end="\n")




      1
     22
    333
   4444
  55555
 666666




for x in range(0,7,1):
    for y in range(7,x,-1):
        print(" ",end="")
    for z in range(0,x):
        print(x,end="")
        
    print(end="\n")





     1
    12
   123
  1234
 12345
123456




for x in range(1,7,1):
    for y in range(6,x,-1):
        print(" ",end="")
    for z in range(1,x+1):
        print(z,end="")
        
    print(end="\n")




     A
    BB
   CCC
  DDDD
 EEEEE
FFFFFF



for x in range(1,7,1):
    for y in range(6,x,-1):
        print(" ",end="")
    for z in range(0,x):
        print(chr(x+64),end="")
        
    print(end="\n")





     A
    AB
   ABC
  ABCD
 ABCDE
ABCDEF





for x in range(1,7,1):
    for y in range(6,x,-1):
        print(" ",end="")
    for z in range(1,x+1):
        print(chr(z+64),end="")
        
    print(end="\n")




*******
 ******
  *****
   ****
    ***
     **
      *
 



for x in range(7,0,-1):
    for y in range(7,0,-1):
        if(x>=y):
            print("*",end="")
        else:
            print(" ",end="")
        
    print(end="\n")





7777777
 666666
  55555
   4444
    333
     22
      1



for x in range(7,0,-1):
    for y in range(x,7):
       print(" " ,end="")
    for z in range(0,x):
        print(x ,end="")
        
    print(end="\n")






0123456
 012345
  01234
   0123
    012
     01
      0



for x in range(7,0,-1):
    for y in range(x,7):
       print(" " ,end="")
    for z in range(0,x):
        print(z ,end="")
        
    print(end="\n")







GGGGGGG
 FFFFFF
  EEEEE
   DDDD
    CCC
     BB
      A
  



for x in range(7,0,-1):
    for y in range(x,7):
       print(" " ,end="")
    for z in range(0,x):
        print(chr(x+64) ,end="")
        
    print(end="\n")







       *
      ***
     *****
    *******
   *********
  ***********
 *************
 




i=1
for x in range(7,0,-1):
    for y in range(x,0,-1):
       print(" " ,end="")
    print("*"*i)
    i+=2
        
    







       1
      222
     33333
    4444444
   555555555
  66666666666
 7777777777777



i=1
n=1
for x in range(7,0,-1):
    for y in range(x,0,-1):
       print(" " ,end="")
    print(str(n)*i)
    i+=2
    n+=1