Triangle numbers are 1, 3, 6, 10, … (1, 1+2, 1+2+3, …). Write triangles_below(limit) that returns all triangle numbers less than limit.
triangles_below(12) → [1, 3, 6, 10]
triangles_below(1) → []
Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.