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
The code should be like:
line = "*"*(2*n) print line s = "*" + " "*(n-2) + "*" for i in range(n-2): print s print line
The line:
"*"*(2*n)
specifies a string of "*", repeated 2*n times. You wanted 2*n column right.. This prints 2*n "*"