Skip to content

Commit 0e6e505

Browse files
cclaussgithub-actions
and
github-actions
authored
singly_linked_list.py: psf/black (#2008)
* singly_linked_list.py: psf/black * updating DIRECTORY.md * Update singly_linked_list.py Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 2431001 commit 0e6e505

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

DIRECTORY.md

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@
295295
* [Add](https://github.com/TheAlgorithms/Python/blob/master/maths/add.py)
296296
* [Aliquot Sum](https://github.com/TheAlgorithms/Python/blob/master/maths/aliquot_sum.py)
297297
* [Allocation Number](https://github.com/TheAlgorithms/Python/blob/master/maths/allocation_number.py)
298+
* [Area](https://github.com/TheAlgorithms/Python/blob/master/maths/area.py)
298299
* [Area Under Curve](https://github.com/TheAlgorithms/Python/blob/master/maths/area_under_curve.py)
299300
* [Armstrong Numbers](https://github.com/TheAlgorithms/Python/blob/master/maths/armstrong_numbers.py)
300301
* [Average Mean](https://github.com/TheAlgorithms/Python/blob/master/maths/average_mean.py)

data_structures/linked_list/singly_linked_list.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
class Node: # create a Node
1+
class Node:
22
def __init__(self, data):
3-
self.data = data # given data
4-
self.next = None # given next to None
3+
self.data = data
4+
self.next = None
55

6-
def __repr__(self): # string representation of a Node
6+
def __repr__(self):
77
return f"Node({self.data})"
88

99

0 commit comments

Comments
 (0)