mirror of
https://github.com/leaders-of-digital-9-task/backend.git
synced 2024-11-14 13:36:40 +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))
|