Posts

Showing posts from October, 2020

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)