jweinst1
10/14/2015 - 10:30 PM

creates a str square in python.

creates a str square in python.

def strsquare(char, wid):
    row = ''.join([char for elem in range(wid)]) + '\n'
    shape = ''.join([row for elem in range(wid)])
    return shape
    
def printsquare(char, wid):
    print(strsquare(char, wid))