Skip to content

Fix 12306 used list instead of string in rot13.py and removed n #12362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Used list instead of string in rot13.py and removed n
  • Loading branch information
MadhavGupta1506 committed Nov 9, 2024
commit bc898c8b269ff96a63e0425fccad9998180aaee5
2 changes: 1 addition & 1 deletion ciphers/rot13.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
>>> dencrypt(s) == msg
True
"""
out = []
out: list[str] = []

Check failure on line 12 in ciphers/rot13.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W291)

ciphers/rot13.py:12:24: W291 Trailing whitespace
n = 13
for c in s:
if "A" <= c <= "Z":
Expand Down
Loading