thing doesn’t exist at that point, because you don’t define what thing is until the next line. Code is evaluated top to bottom (with some caveats that can alter the order). So you can’t write some code that accesses something before you actually create the something you’re trying to access.