Linked List - Count -> i-Practice -> Lab Programs -> Data Structures Laboratory Using Python
Linked List - Count Write a program to count the number of nodes in the Linked List. Define the class Node with the following data members: data - to store data next - to store the next node Define class LinkedList with following data member: head - to store head node Include functions append --- to add data at the end of the linked list. display --- to display all the data in the linked list. count --- to return the number of data elements in the linked list. Refer the function specifications for further details. [ Note : The statement. 'Elements in the linked list are' should be in the main function. Input and Output Format: Refer sample input and output for formatting specifications. Sample Input and Output: [All text in bold corresponds to input and the rest corresponds to output.] Enter the value 10 Do you want to add another node? Type Yes/No Yes Enter the value 17 Do you want to add another node? Type Yes/No Yes Enter the value 11 Do...