Mar-05-2019, 03:12 PM
Hello, this is what I have so far:
Thanks.
class Linked_list: def __init__(self, data, next=None): self.data, self.next = data, next def print_list(list): while list is not None: print(list.data, end=' ---> ') list = list.next print(None) def make(sequence): list = None for value in reversed(sequence): list = Linked_list(value, list) return list def remove_first(list): ...I simply don“t know how to delete the first item of my linked list. I should use just structure I wrote above. Can you give me a help?
Thanks.