Write the segment of code to create and insert the node with info 10 after the node to which A points.
Identify the node to which A points
The node to which A points contains the value 18.
Create a new node with info 10
python
new_node = Node(info=10)
Link the new node to the next node
Set the new node's link to point to the node after the node with info 18.
python
new_node.link = A.link
Update the link of the node with info 18
Set the link of the node with info 18 to point to the new node.
python
A.link = new_node
The code to insert the node is:
python
new_node = Node(info=10)
new_node.link = A.link
A.link = new_node
\(\boxed{\text{Code inserted successfully}}\)
The code to insert the node with info 10 after the node to which A points is:
python
new_node = Node(info=10)
new_node.link = A.link
A.link = new_node
\\(\\boxed{\\text{Code inserted successfully}}\\)