So I have this really long if else block and I was wondering if there is a way to simplify it?
def position(self, k): if self.b == None: self.b = k if (self.b).location_of(k) == 0: if self.aquire(0) == None: self.put(0, ABK(k)) else: self.aquire(0).insert(k) elif (self.b).location_of(k) == 1: if self.aquire(1) == None: self.put(1, ABK(k)) else: self.aquire(1).insert(k) elif (self.b).location_of(k) == 2: if self.aquire(2) == None: self.put(2, ABK(k)) else: self.aquire(2).insert(k)