python
\ndef middleNode(self, head: ListNode) -> ListNode:\n\ta = []\n\twhile head:\n\t\ta.append(head)\n\t\thead = head.next\n\treturn a[len(a)//2]\n
```\ndef middleNode(self, head: ListNode) -> ListNode:\n\ta = []\n\twhile head:\n\t\ta.append(head)\n\t\thead = head.next\n\treturn a[len(a)//2]\n```
['Python', 'Python3']