Skip to content

Instantly share code, notes, and snippets.

@shamikalashawn
Created February 6, 2017 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shamikalashawn/41f76c639abb6ef35201270633ad1107 to your computer and use it in GitHub Desktop.
Save shamikalashawn/41f76c639abb6ef35201270633ad1107 to your computer and use it in GitHub Desktop.
Make a box of any size with any character you want. Can't decide? No worries, there is a default box size of 4 using the "*" character.
def variable_size_box(size = 4, character = '*'):
box = ''
for col in range(size):
if col == 0:
box = box
else:
box = box + '\n'
for row in range(size):
box = box + character
box = box + '\n'
return box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment