Skip to content

Commit ec6c3ed

Browse files
committed
Update 3_linked_list.py
Removal of is not None statement
1 parent cf03d1e commit ec6c3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/3_LinkedList/3_linked_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def print(self):
1313
return
1414
itr = self.head
1515
while itr:
16-
print(itr.data, end="-->") if itr.next is not None else print(itr.data)
16+
print(itr.data, end="-->") if itr.next else print(itr.data)
1717
itr = itr.next
1818

1919
def get_length(self):

0 commit comments

Comments
 (0)