New to programming: trying to understand how memoization example relates to Python 3 : <p>Like I said, I am new to programming and I like to watch CS Dojo on youtube for my learning material (along with other tutorials). He uses an example of memoization but doesn't seem to work on Python 3. Trying to understand how to use the correct syntax and how exactly it works. Below is the example he uses for using Memoization to find numbers in the Fibonacci Sequence...</p>

<pre><code>def fib(n, memo):
    if memo[n] != null:
        return memo[n]
    if n == 1 or n == 2:
        result = 1
    else: 
        result = fib(n-1) + fib(n-2)
    memo[n] = result
    return result
</code></pre>

<p>he also does not show how to print the result for this, so that would be a big help as well.</p>
