logo

Crowdly

Browser

Add to Chrome

What is the output of the following code snippet? class Node:     def __i...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output

of the following code snippet?

class Node:

    def __init__(self, data):

        self.data = data

        self.next = None

 

head = Node(10)

head.next = Node(20)

head.next.next =

Node(30)

 

curr = head

while curr.next:

    curr = curr.next

print(curr.data)

More questions like this

Want instant access to all verified answers on elearn.squ.edu.om?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome