☑Kizspy.me
Answer (Choose 1 answer)
☐ A
Back
Next
Suppose a singly linked list of integers is given below:
head ->1->2->3->4->5->None
What will be the output of the following code?
def listprint(self):
printval self.head
while (printval):
print (printval.data)
printval printval.next.next
A. 1 3 5
B. 2345
C. 1234
D. 54321
FUQ.sh
sh the exam.