The notebook throws a `UndefVarError` while accessing the global variables inside the for loop. 