Skip to Content
Learn
Nodes: Python
Nodes Python Getters

We need methods to access the data and link within the node. For this, we will use two getters, .get_value() and .get_link_node().

These should each return their corresponding value on the self object.

Instructions

1.

Implement the .get_value() getter in the Node class.

2.

Implement the .get_link_node() getter in the Node class.

Folder Icon

Sign up to start coding

Already have an account?