I\'m to \"Write a python program that prompts the user to input a positive integer n. The program then prints a hollow rectangle with n rows and 2*n columns. For a example an in
My solution is more elementary. Please consider it :
row = abs(eval(input('Enter row: ')))
col = abs(eval(input('Enter column: ')))
print ('*'*col)
for i in range (row-2):
print ('*'+' '*(col-2)+'*')
print ('*'*col)