function '__init__' miss a 'i'

__int__ should be __init__ i think?
This commit is contained in:
William Feng 2018-03-07 15:04:37 +08:00 committed by GitHub
parent 95a5331162
commit c975cac371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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