(self, mode)
Switch tape to reading or writing mode.
Switch tape to reading or writing mode.
Switch tape to reading or writing mode .
def switch_mode(self, mode):
        """Switch tape to reading or writing mode."""
        self.operating_mode = mode
def switch_mode ( self , mode ) : self . operating_mode = mode