Learn
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.
Sign up to start coding
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.