I am required to use nested for loops and print(\'*\', end=\' \') to create the pattern shown here:
print(\'*\', end=\' \')
And here is my code. I have figured out the first t
for i in range(1,n+1): print '{:>{}}'.format('#'*i, n) this is For pattern D for i in range(1,n-1): print '{:>{}}'.format('#'*i, n) this is For pattern c