镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Open
Changes from all commits
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
2 changes: 2 additions & 0 deletions other/password.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def alternative_password_generator(chars_incl: str, i: int) -> str:
# Password Generator = full boot with random_number, random_letters, and
# random_character FUNCTIONS
# Put your code here...
if i < len(chars_incl):
raise ValueError("Required characters exceed the requested password length")
i -= len(chars_incl)
quotient = i // 3
remainder = i % 3
Expand Down
Loading