Skip to content

Instantly share code, notes, and snippets.

@evanwike
Created August 29, 2016 23:32
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 evanwike/8670e798554d389bafa4612e1ea772ad to your computer and use it in GitHub Desktop.
Save evanwike/8670e798554d389bafa4612e1ea772ad to your computer and use it in GitHub Desktop.
def board():
x = int(input('Enter rows:'))
y = int(input('Enter columns:'))
def row():
print(' ' + '--- '*x)
def col():
print(' ' + '| '*(x) + '|')
for i in range(x):
row()
col()
row()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment