Riddhima Deshmukh 2faf238491
Update rot13.py
Using List for Accumulation:
Instead of string concatenation within the loop, result.append() is used to create a list, and join is called at the end to concatenate the list into a string. This is more efficient for larger strings.

Removed Unnecessary Parameter n:
Eliminating the n parameter makes the function simpler and ensures consistent ROT13 encryption/decryption.

Refactored Doctest and Assertions:
The doctest examples are consistent with the revised function, ensuring reversibility through dencrypt(dencrypt(s)) == s without additional parameters.
2024-10-28 09:52:48 +05:30
..
2023-05-26 09:34:17 +02:00
2023-05-26 09:34:17 +02:00
2023-03-01 17:23:33 +01:00
2023-10-09 17:19:05 +02:00
2023-03-01 17:23:33 +01:00
2021-11-11 21:39:54 +08:00
2024-10-28 09:52:48 +05:30
2024-03-12 09:40:32 +01:00

Ciphers

Ciphers are used to protect data from people that are not allowed to have it. They are everywhere on the internet to protect your connections.