1.) Arrays — A collection of elements identified by an index or a key example: ex_arr = [1, ‘string’, 3, ‘four’]
print(ex_arr[3]) Answer:
four 2.) Linked Lists — A collection of data elements, called nodes that contain reference to the next node in the list and holds whatever data the application needs example:
Linked list example the Node class
class Node(object):
def __init__(self, val):
self.val = val
self.next = None