Computer Science, asked by kamal1137, 1 day ago

write a python progam to print number pyramid pattern

Answers

Answered by amedgurey
0

Answer:

Pattern - 7: Print two pyramid in a single pattern

rows = input("Enter the number of rows: ")

# Outer loop will print the number of rows.

for i in range(0, rows):

# This inner loop will print the stars.

for j in range(0, i + 1):

print("*", end=' ')

# Change line after each iteration.

print(" ")

Similar questions