2025-04-23 01:46:29 +03:00

12 lines
224 B
Python

from random import Random
from typing import TypeVar
def indent(text: str, spaces: int = 2) -> str:
prefix = " " * spaces
return "\n".join(prefix + line for line in text.splitlines())
rnd = Random()
rnd.seed(42)