Created
February 6, 2017 23:37
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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