diff --git a/kyu_3/rail_fence_cipher_encoding_and_decoding/encoding_and_decoding.py b/kyu_3/rail_fence_cipher_encoding_and_decoding/encoding_and_decoding.py index afb743d91fd..f99483a3703 100644 --- a/kyu_3/rail_fence_cipher_encoding_and_decoding/encoding_and_decoding.py +++ b/kyu_3/rail_fence_cipher_encoding_and_decoding/encoding_and_decoding.py @@ -9,7 +9,6 @@ def get_rails(string: str, n: int) -> list: """ Create rails matrix. - :param string: str :param n: int, the number of rails :return: list, rails matrix @@ -23,7 +22,7 @@ def get_rails(string: str, n: int) -> list: down = True for char in string: - for char_index in range(0, n): + for char_index in range(n): if char_index != row: rails[char_index].append("") else: