Triangle Challenge with explanation

+22
PY
py
OUTPUT