Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def __init__(self, pole=None):
  2. self.zac = None
  3. self.kon = None
  4. if pole is not None:
  5. if type(pole) == Zoznam:
  6. self.kon.next = pole
  7. else:
  8. for i in pole:
  9. if type(i) == list or type(i)==tuple:
  10. self.append(Zoznam(i))
  11. else:
  12. self.append(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement