Netbyzz
#CODE = #B039 def print_diamond(n): for i in range(1, 2*n): spaces=abs(n-i) stars=2*(n-spaces)-1 print(' '* spaces +'*'*stars) #example usage print_diamond(5)