Generation

generate functionSun, 20 Nov 2022

Python Program to print a pyramid with *

def pyramid(n): for i in range(0, n): for j in range(0, i+1): print("* ",end="") print("\r") pyramid(5)

Want to kickstart your project?Use the new AI Studio to create your code