Next


Python Online Compiler

							
							

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


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


111
222
333
444
555        


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

12345
12345
12345
12345
12345

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


AAAAA
BBBBB
CCCCC
DDDDD
EEEEE
FFFFF


for x in range(65,71):
    for y in range(1,6):
        print(chr(x), end="")
    print(end="\n")

ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF                     
                      

for x in range(1,6):
    for y in range(65,71):
        print(chr(y), end="")
    print(end="\n")

555555
444444
333333
222222
111111                        
              


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


654321
654321
654321
654321
654321
654321

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

GGGGG
FFFFF
EEEEE
DDDDD
CCCCC
BBBBB
AAAAA   


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


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


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

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

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

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


for x in range(1,8,1):
    for y in range(1,8,1):
        if(x==4 or y==4 ):
            print("*", end="")
        else:
            print(" ", end="")
    print(end="\n")


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

for x in range(1,8,1):
    for y in range(1,8,1):
        if(x==4 or y==4  or x==7 and (y==3 or y==5)):
            print("*", end="")
        else:
            print(" ", end="")
    print(end="\n")

A
BB
CCC
DDDD
EEEEE
FFFFFF
GGGGGGG



for x in range(65,72,1):
    for y in range(65,x+1,1):
            print(chr(x), end="")
    print(end="\n")




A
AB
ABC
ABCD
ABCDE
ABCDEF
ABCDEFG



for x in range(65,72,1):
    for y in range(65,x+1,1):
            print(chr(y), end="")
    print(end="\n")