#Program: To create singly linked list
#Date:30 04 2018

#Node Class
class Node:
	def __init__(self,data):
		self.data=data
		self.next=None

#Class linkedlist contanis 
class LinkedList():
	def __init__(self):
		self.head=None
	def printlist(self):
		temp=self.head
		while(temp):
			print (temp.data)
			temp=temp.next


if __name__=='__main__':
	llist=LinkedList()
	llist.head=Node(1)

	second=Node(2)
	third=Node(3)

	llist.head.next=second
	second.next=third

	llist.printlist()

