Translate Python to English

I am hoping for more help like this. How would someone translate this Python code into an English sentence/paragraph? Thank you in advance.
current_node = self.get_head_node()
while current_node:
if current_node.get_value() != None:
string_list += str(current_node.get_value()) + ā€œ\nā€
current_node = current_node.get_next_node()
return string_list

maybe something like this:

  1. Set the current_node to be the head_node of the list.
  2. If there is such a node (current_node is not None),
    if the current node has a value (the value is not None), then add the value of the node to string_list (the output string)
    Go to the next node (set current_node to be the next node);
    repeat step 2 (until there are no further nodes)
  3. output string_list (a string containing the values of the nodes)
1 Like

Thank you so much for your help. That makes more sense now.