Practice Exercise: Pyramid Patterns

Let's practice different pyramid patterns using nested loops.

In this lesson, we will practice creating more pyramid patterns.

So let’s begin!

1. Pattern of numbers

Implement a function that takes the height as the input and prints the following:

Sample output

Height: 5

1
2 3
4 5 6 
7 8 9 10
11 12 13 14 15

Good luck! 👍

Get hands-on with 1200+ tech skills courses.