(Choose 1 answer)
Suppose a singly linked list of integers is given below:head ->1->2->3->4->5->NoneWhat will be the output of the following code?
def listprint(self):printval = self.head while (printval):print (printval.data)printval = printval.next
A. 12345
B. 2345
C. 1234
D. 54321
5