We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf03d1e commit ec6c3edCopy full SHA for ec6c3ed
data_structures/3_LinkedList/3_linked_list.py
@@ -13,7 +13,7 @@ def print(self):
13
return
14
itr = self.head
15
while itr:
16
- print(itr.data, end="-->") if itr.next is not None else print(itr.data)
+ print(itr.data, end="-->") if itr.next else print(itr.data)
17
itr = itr.next
18
19
def get_length(self):
0 commit comments