Returns - None Input - str ---------- - Initialize doubly linked list which will serve as the browser history and sets the current page - Initialize navigation counters
(self, homepage: str)
| 20 | """ |
| 21 | |
| 22 | def __init__(self, homepage: str): |
| 23 | """ |
| 24 | Returns - None |
| 25 | Input - str |
| 26 | ---------- |
| 27 | - Initialize doubly linked list which will serve as the |
| 28 | browser history and sets the current page |
| 29 | - Initialize navigation counters |
| 30 | """ |
| 31 | self._head = DLL(homepage) |
| 32 | self._curr = self._head |
| 33 | self._back_count = 0 |
| 34 | self._forward_count = 0 |
| 35 | |
| 36 | def visit(self, url: str) -> None: |
| 37 | """ |