Nov-22-2020, 08:15 PM
Hello,
Is there a better way to write this piece of code? I'm looking for unique entries to append into a list.
Is there a better way to write this piece of code? I'm looking for unique entries to append into a list.
l =[] if mgr.get_obj_id(i).split('.')[:-1] not in l: l.append(mgr.get_obj_id(i).split('.')[:-1])Thanks in advance.