class
Node:

def __init__(self, data=None, next=None):
self.data = data
self.next = next


class Linkedlist:
def __init__(self):
self.head = None


def prepend(self):
pass


def append(self):
pass


def insert(self):
pass



def searching(self):
pass



def remove(self):
pass


_1st_node = Node("A")
_2nd_node = Node('D')
_3rd_node = Node("C")
_4th_node = Node("F")
_5th_node = Node("E")
_6th_node = Node("B")


print(_1st_node.data)

_1st_node.next = _2nd_node
print(_1st_node.next.data)

_2nd_node.next = _3rd_node
print(_3rd_node.data)

_3rd_node.next = _4th_node
print(_3rd_node.next.data)

_4th_node.next = _5th_node
print(_4th_node.next.data)

_5th_node.next = _6th_node
#print(_6th_node.data)

print(_5th_node.next.data)