How to make this code work?
https://sololearn.com/compiler-playground/cQfKH3oguuj7/?ref=app Sample usage #1: >>> l = LinkedList([2, 7, 4, 9, 18, 19, 22]) >>> l.to_list() [2, 7, 4, 9, 18, 19, 22] >>> l.len() 7 >>> l.get(3) 9 >>> l.has(17) False >>> o = LinkedList([7]) >>> o.to_list() [7] >>> o.len() 1 >>> e = LinkedList([]) >>> e.to_list() [] >>> e.len() 0 Sample usage #2: >>> l = LinkedList([2, 7, 6, 4]) >>> l.delete(2) >>> l.delete(5) >>> l.delete(4) >>> l.to_list() [7, 6] >>> l.delete(6) >>> l.delete(7) >>> l.to_list() [] >>> l.delete(8) >>> l.to_list() [] Sample usage #3: >>> l = LinkedList([2, 7, 4]) >>> l.rotate() >>> l.to_list() [4, 2, 7] >>> o = LinkedList([8]) >>> o.rotate() >>> o.to_list() [8] >>> e = LinkedList([]) >>> e.rotate() >>> e.to_list() [] Sample usage #4: >>> l = LinkedList([2, 7, 4, 9, 18, 19, 22]) >>> m = LinkedList([2, 7, 4]) >>> n = LinkedList([9, 18, 19]) >>> e = LinkedList([]) >>> l.starts_with(m) True >>> m.starts_with(l) False >>> l.starts_with(e) True >>> l.contains(n) True >>> m.contains(l) False