Respuesta :
In python:
def get_even(txt):
return txt[0:int((len(txt) / 2))]
We can test our function with the following code:
print(get_even("Python")) This returns "Pyt" in the console.
I hope this helps!
In python:
def get_even(txt):
return txt[0:int((len(txt) / 2))]
We can test our function with the following code:
print(get_even("Python")) This returns "Pyt" in the console.
I hope this helps!