def print_rangoli(n): # step 1 - store letters of the alphabet alphabet = "abcdefghijklmnopqrstuvwxyz" # step 2 - get the first n letters of the alphabet first_n = alphabet[:n] # step 3 - draw the middle line middle = "-".join(first_n[::-1] + first_n[1:])