Python Program to input any character and print box of that

 


x=input('Enter the charcater: ') 

r=int(input('Enter the no. of rows: ')) 

c=int(input('Enter the no. of columns: ')) 

print(x*c) 

ns=x+' '*(c-2)+x 

for i in range (r-2): 

    print(ns) 

print(x*c)





Comments

Post a Comment

Some popular posts

Python Program that computes the net amount of a bank account based a transaction log from console input.