Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Middle Characters solution in Uncategorized category for Middle Characters by Antoni_Wojcik
def middle(text: str) -> str:
return text[(len(text)-1)//2:(len(text)+2)//2]
print("Example:")
print(middle("example"))
assert middle("example") == "m"
assert middle("test") == "es"
print("The mission is done! Click 'Check Solution' to earn rewards!")
Nov. 30, 2022