You are viewing a single comment's thread. Return to all comments →
def print_rangoli(size): alp = 'abcdefghijklmnopqrstuvwxyz' for i in range(size-1,-size,-1): temp = '-'.join(alp[size-1:abs(i):-1]+alp[abs(i):size]) print(temp.center(4*size-3,'-')) if __name__ == '__main__': n = int(input()) print_rangoli(n)
Seems like cookies are disabled on this browser, please enable them to open this website
Alphabet Rangoli
You are viewing a single comment's thread. Return to all comments →