A triangle of numbers
Write code · Medium · §7.6 Nested loops and the first math helper
Print a triangle of numbers with n lines. On each line, print the numbers from 1 to that line's number with no spaces between them.
Starter code
n = 4Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.