Print a 9x9 diamond shaped pattern.......using loops
#written by Chris O'Leary:
#Filename: star.py
star=1
space=5
def star_decrease(star,space):
while star > 0:
print " "*space + "*"*star
space = space+1
star = star-2
def star_increase(star,space):
while star < 9:
print " "*space + "*"*star
space = space-1
star = star+2
if star == 9:
star_decrease(star, space)
star_increase(star,space)