<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, other):
 """ Updates this scope with the content of another scope. Arguments --------- other: a :class:`Scope` instance. Returns ------- Scope The updated scope (self). """


        self.globals.update(other.globals)
        self.locals.update(other.locals)
        return self