fix(curriculum): Update instruction of build a pyramid generator (#61370)

This commit is contained in:
Tanmay Gautam
2025-07-26 04:05:53 +05:30
committed by GitHub
parent e26fa7d3aa
commit 5a52d9ace4
@@ -18,7 +18,7 @@ Fulfill the user stories below and get all the tests to pass to complete the lab
1. The `pyramid` function should return a string in which the pattern character is repeated and arranged to form a pyramid having the vertex facing upwards when the third argument is `false`.
1. When the third argument is `true` the pyramid should have the vertex facing downwards.
1. The vertex row should have a single pattern character, and each other row should have two pattern characters more than the previous one.
1. Each row should start with a number of spaces sufficient to put the center character of each row in the same column.
1. Each row should start with a number of spaces sufficient to put the center character of each row in the same column and there should not be any spaces at the end of each row.
1. The pyramid should start and end with a newline character.
For example, calling `pyramid("o", 4, false)` should give this output: