Skip to content

Commit a165222

Browse files
committed
Name Changes
1 parent 13b2a43 commit a165222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

other/nth_repeated.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from collections import Counter
44

55

6-
def nth_repeated(sequence: list, nth_repeated: int) -> str:
6+
def count_repeated(sequence: list, nth_repeated: int) -> str:
77
"""
88
>>> sequence = ['Algorithms','Algorithm','Python','Python','The','Python','The']
99
>>> nth_repeated = 2
@@ -35,4 +35,4 @@ def nth_repeated(sequence: list, nth_repeated: int) -> str:
3535
"Python",
3636
]
3737
nth_repeated = 2
38-
print(nth_repeated(input_sequence, nth_repeated))
38+
print(count_repeated(input_sequence, nth_repeated))

0 commit comments

Comments
 (0)