Problem
Number Pyramid
Intro Python
Student workspace
Number Pyramid
Read one integer and print a number pyramid. For input 3, print three rows containing 1, then 2 2, then 3 3 3.
pythonPython 3.110 hidden tests
Runner
Idle
Visible tests execute inside a browser worker.
Visible tests
1
Run the example cases against the current code.
Last run
--
Passing visible cases from the current editor state.
solution.py
Code editor
Paste or edit your Python solution here.
Verification
Visible tests
Pyodide for Python and a worker sandbox for JavaScript.
- Prints a pyramid for 3input:
"3"expected:"1\n2 2\n3 3 3"
Result view
Display options
Run visible tests to see results here.