Hi! I’m doing the Computer Science fundamentals in Python. Linked Lists. Did find with the conceptual parts but creating a class to implement linkedlists was extremely confusing.
Quick question. for the stringify_list method, does ‘while current_node:’ have the meaning of, “while current node is not null, do the following”? thanks!
string_list = “”
current_node = self.get_head_node()
if current_node.get_value() != None:
string_list += str(current_node.get_value()) + “\n”
current_node = current_node.get_next_node()