mirror of
https://github.com/dancojocaru2000/foxbank.git
synced 2025-02-23 23:09:35 +02:00
8 lines
208 B
Python
8 lines
208 B
Python
|
def str_range_replace(
|
||
|
input: str,
|
||
|
replace_with: str,
|
||
|
range_start: int | None = None,
|
||
|
range_end: int | None = None,
|
||
|
) -> str:
|
||
|
return input[:range_start] + replace_with + input[range_end:]
|