mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
function '__init__' miss a 'i'
__int__ should be __init__ i think?
This commit is contained in:
parent
95a5331162
commit
c975cac371
@ -2,7 +2,7 @@ from __future__ import print_function
|
|||||||
|
|
||||||
|
|
||||||
class Node: # create a Node
|
class Node: # create a Node
|
||||||
def __int__(self, data):
|
def __init__(self, data):
|
||||||
self.data = data # given data
|
self.data = data # given data
|
||||||
self.next = None # given next to None
|
self.next = None # given next to None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user