Draw a hollow square of # with given width I got this challenge from Codingame and am curious about better solutions than mine:

Given a width via standard input draw a hollow square of '#' in given width and length.

Example:

5 results in

#####
#   #
#   #
#   #
#####


I used python to solve this so i am particulary interested in other python code. But please feel free to post your solution in any language you want.
Charcoal, 6 bytes

Code:

ＮβＢββ#


Explanation:

Ｎβ        # Get input from the command line and store into β
   Ｂ      # Draw a hollow box with...
     β     #  Width β
      β    #  Height β
       #   #  Filled with the character '#'
           # Implicitly output the box


Try it online!