Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self, pole=None):
- self.zac = None
- self.kon = None
- if pole is not None:
- if type(pole) == Zoznam:
- self.kon.next = pole
- else:
- for i in pole:
- if type(i) == list or type(i)==tuple:
- self.append(Zoznam(i))
- else:
- self.append(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement