Code:
dim = int(input("Enter the size of the diamond: ")) area = int(input('Enter the numer of times to be printed: ')) def diamond(size, times): ***for j in range(times): *******for i in range(size): ***********print (" "*(size-i) + "* " * i)*times *******for i in range(size+1): ***********print (" "*(i) + "* "*(size-i))*times diamond(dim,area)
Comment