def assign(self, var, val, assignment):
        "Add {var: val} to assignment; Discard the old value if any."
        assignment[var] = val
        self.nassigns += 1
def assign(self, var, val, assignment):
        "Add {var: val} to assignment; Discard the old value if any."
        assignment[var] = val
        self.nassigns += 1
def assign ( self , var , val , assignment ) : assignment [ var ] = val self . nassigns += 1
Add {var: val} to assignment; Discard the old value if any.
Add { var : val } to assignment ; Discard the old value if any .