1.1 Python code for adding the first n natural numbers.

1.2 Alternative Python code for adding the first n natural numbers.

1.3 Python code for computing the n-th Fibonacci number.

1.4 Alternative Python code for computing the n-th Fibonacci number.

2.1 Misconceptions regarding base cases through the factorial function.

2.2 Code for computing the sum of the digits of a nonnegative integer.

Start Free Trial

No credit card required