this is the code i got for making a diamond. However, the diamond is not even. How
Fantastic news! We've Found the answer you've been seeking!
Question:
this is the code i got for making a diamond. However, the diamond is not even. How can I make it even?
for i in range (1,10):
print (" "*(10-i),"*"*(2*i-1))
for i in range(10):
for j in range(0, i):
print(" ", end="")
for k in range(2 * (10 - i) - 1):
print("*", end="")
print()
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: