Python Nested For loop - Pyramid


Python Nested For loop - Pyramid

Program
# a for loop will executed 5 time i.e from 1 to 5 # b for loop will executed a time for a in range(1,6): for b in range(a): print("*",end=" ") #end=" " will print space after every * print() #Start with new Line
Input
Output