Skip to content

02 Tips & Tricks

mccornet edited this page Jul 24, 2021 · 14 revisions

Tips & Tricks

Math

  • Sum of consecutive integers: 1/2 * n * (n+1)

Python

If the number of iterations is known beforehand; use a for loop instead of while.

Clone this wiki locally