Skip to content

Instantly share code, notes, and snippets.

@shamikalashawn
Created February 6, 2017 22:45
Show Gist options
  • Save shamikalashawn/a6d8ad47d5b1b550844b3241e86a9a54 to your computer and use it in GitHub Desktop.
Save shamikalashawn/a6d8ad47d5b1b550844b3241e86a9a54 to your computer and use it in GitHub Desktop.
A character turns into a box with the dimensions of the height and width provided.
def create_box(height, width, character):
if height >= 1 and width >=1:
box = ''
for row in range(height):
box = box + (character * width) + '\n'
print (box)
return box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment