Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. def __log(self, q, s, d, p, n, i):
  2. print("ITERACJA NR ", i)
  3. print("-----------------------------------------")
  4. print("q =", self.__list_to_text(q))
  5. print("s =", self.__list_to_text(s))
  6. print("-----------------------------------------")
  7. print(" ", self.__list_to_text(n))
  8. print("d =", self.__list_to_text(d))
  9. print("p =", self.__list_to_text(p))
  10. print()
  11.  
  12. def __list_to_text(self, items):
  13. text = "["
  14. if items:
  15. for item in items:
  16. text += str(item).rjust(5, " ")
  17. text += "]"
  18. return text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement