Skip to content

Commit cb408bf

Browse files
committed
resolved all the issues
1 parent ea72a2c commit cb408bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

strings/Secret_language.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def random_digits() -> str:
1717

1818
return ''.join(random.choices(string.digits, k=3))
1919

20-
def encode(code) -> str:
20+
def encode(code: str) -> str:
2121
'''
2222
Encodes the code by shifting the first character to the end of the original string,
2323
and adding the 3 random_characters + 3 random-digits + original string(code) + 3 random-digits + 3 random_characters.
@@ -31,7 +31,7 @@ def encode(code) -> str:
3131
code = random_chars() + random_digits() + code + random_digits() + random_chars()
3232
return code
3333

34-
def decode(code) -> str:
34+
def decode(code: str) -> str:
3535
'''
3636
decodes the encoded string by removing the randomly added characters and reversing the shift
3737

0 commit comments

Comments
 (0)