Challenge 2: Display Output Using Placeholders

This challenge requires you to display output using the placeholder notation.

We'll cover the following

Problem Statement

The task is to display the pyramid of numbers in the following format.

Output

1
22
333
4444
55555

Coding Exercise

Write your code below. It is recommended​ that you try solving the exercise yourself before viewing the solution.

Note: There is a test function given in the code for testing purposes. Do not modify it.

Good luck!🤞

Create a free account to access the full course.

Continue your learning journey with a 14-day free trial.

By signing up, you agree to Educative's Terms of Service and Privacy Policy