Search

PATTERN

by 10:24:00 0 comments
 

SOURCE CODE: 
def display(str):
    for i in range(len(str)):
        for j in range(len(str)):
            if i==j or i+j==len(str)-1:print str[j],
            if j==len(str)-1:print
            else:print" ",
str=raw_input()
display(str)



Input:
Program
Output:
P      m 
 r    a 
  o  r 
    g 
  o  r 
 r    a 
P      m





                                      

Anonymous

Developer

This is created by GAVASKAR .

0 comments:

Post a Comment