Skip to content

Commit 3a5ca42

Browse files
committed
pep8 and readme fix
I think this should fix the pep8 issues and I added the readme file link
1 parent f8fe944 commit 3a5ca42

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ In order to achieve greater coverage and encourage more people to contribute to
22302230
</a>
22312231
</td>
22322232
<td> <!-- Python -->
2233-
<a href="./CONTRIBUTING.md">
2233+
<a href="./src/python/unordered_linked_list.py">
22342234
<img align="center" height="25" src="./logos/github.svg" />
22352235
</a>
22362236
</td>

src/python/unordered_linked_list.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ class Unordered_Linked_List:
2222
def __init__(self) -> None:
2323
self.first_node = None
2424

25-
def insert(self,value): # inserts a new node with the given value
25+
def insert(self,value):
26+
# inserts a new node with the given value
2627
if self.first_node is None:
2728
self.first_node = Node(value)
2829
else:
2930
tmp = Node(value)
3031
tmp.next = self.first_node
3132
self.first_node = tmp
3233

33-
def find(self,value): # returns true if the specified value is in your list
34+
def find(self,value):
35+
# returns true if the specified value is in your list
3436
ptr = self.first_node
3537
while ptr is not None:
3638
if ptr.value == value:
@@ -51,7 +53,8 @@ def size(self): # returns size of the list
5153
print(f'Your list is of size {i}')
5254
return i
5355

54-
def remove(self,value): # removes all instances of a given value
56+
def remove(self,value):
57+
# removes all instances of a given value
5558
ptr = self.first_node
5659
prev = None
5760
while ptr is not None:

0 commit comments

Comments
 (0)