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.

Python Program which will find all such numbers between 1000 and 3000 (both included) such that each digit of the number is an even number.The numbers obtained should be printed in a comma-separated sequence on a single line