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-10-11 14:30:02 -04:00
2024-10-28 09:52:48 +05:30
2024-08-25 17:33:11 +02:00
2024-09-30 23:01:15 +02:00
2024-04-02 21:13:56 +02:00
2024-09-30 23:01:15 +02:00
2024-08-25 17:33:11 +02:00
2024-09-30 23:01:15 +02:00
2024-09-30 23:01:15 +02:00
2024-08-25 17:33:11 +02:00
2024-08-25 17:33:11 +02:00
2022-07-23 07:56:59 +05:30
2022-03-16 23:40:48 +08:00

The Algorithms - Python

Gitpod Ready-to-Code Contributions Welcome Discord chat Gitter chat
GitHub Workflow Status pre-commit code style: black

All algorithms implemented in Python - for education

Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.

Getting Started

Read through our Contribution Guidelines before you contribute.

Community Channels

We are on Discord and Gitter! Community channels are a great way for you to ask questions and get help. Please join us!

List of Algorithms

See our directory for easier navigation and a better overview of the project.

Languages
Python 99.9%
Shell 0.1%