mirror of
https://github.com/leaders-of-digital-9-task/backend.git
synced 2024-11-22 09:26:35 +03:00
8 lines
219 B
Python
8 lines
219 B
Python
import random
|
|
import string
|
|
|
|
|
|
def generate_charset(length: int) -> str:
|
|
"""Generate a random string of characters of a given length."""
|
|
return "".join(random.choice(string.ascii_letters) for _ in range(length))
|