Skip to content

Commit 89a0fc1

Browse files
committed
Replaced main function
1 parent 69d9456 commit 89a0fc1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Diff for: ciphers/fractionated_morse_cipher.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,9 @@ def decrypt_fractionated_morse(ciphertext: str, key: str) -> str:
158158
return decrypted_text
159159

160160

161-
def main() -> None:
161+
if __name__ == "__main__":
162162
"""
163163
Example usage of Fractionated Morse Cipher.
164-
165-
>>> main()
166-
Plain Text: defend the east
167-
Encrypted: ESOAVVLJRSSTRX
168-
Decrypted: DEFEND THE EAST
169-
170164
"""
171165
plaintext = "defend the east"
172166
print("Plain Text:", plaintext)
@@ -177,7 +171,3 @@ def main() -> None:
177171

178172
decrypted_text = decrypt_fractionated_morse(ciphertext, key)
179173
print("Decrypted:", decrypted_text)
180-
181-
182-
if __name__ == "__main__":
183-
main()

0 commit comments

Comments
 (0)