LearnPy Hub
← Introduction & print() problems
Medium

Rectangle Outline

Read a width w and a height h (both at least 2). Print a rectangle of # that is w wide and h tall, hollow inside (spaces).

Input

Two integers.

Output

h lines.

Sample 1

Input
5
3
Output
#####
#   #
#####

Sample 2

Input
2
2
Output
##
##
solution.py
Output appears here
Rectangle Outline · Python practice problem · LearnPy Hub