Skip to main content

Node representation

Syntax:

str(Node)
# or
repr(Node)

  • str(Node) will return a string representation of the data stored within the Node
  • repr(Node) will return the same as str(Node), but wrapped within the text "Node()"