Python Error Variable Is Not Defined But The Variable Can Be Called In The Console Stack

Python Error Variable Is Not Defined But The Variable Can Be Called In The Console Stack