Created
February 6, 2017 22:45
-
-
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.
This file contains hidden or 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 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