Settings

Set Your Theme

Python Project
Clone Repository
📂 src
  📂 utils
  📂 tests
  📄 main.py
main.py
utils.py
import random

def generate_password(length: int) -> str:
    """Generate a random password of given length."""
    chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()"
    return ''.join(random.choice(chars) for _ in range(length))

if __name__ == "__main__":
    password = generate_password(12)
    print(f"Generated password: {password}")
$ python main.py
Generated password: X2$fG9pL7*mQ
$


VSCode to Bismuth Theme Converter