We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea72a2c commit cb408bfCopy full SHA for cb408bf
1 file changed
strings/Secret_language.py
@@ -17,7 +17,7 @@ def random_digits() -> str:
17
18
return ''.join(random.choices(string.digits, k=3))
19
20
-def encode(code) -> str:
+def encode(code: str) -> str:
21
'''
22
Encodes the code by shifting the first character to the end of the original string,
23
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:
31
code = random_chars() + random_digits() + code + random_digits() + random_chars()
32
return code
33
34
-def decode(code) -> str:
+def decode(code: str) -> str:
35
36
decodes the encoded string by removing the randomly added characters and reversing the shift
37
0 commit comments