mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): Update instruction of build a pyramid generator (#61370)
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user