Write a Python function to get the first half of a specified string of even length. Suppose the input string is "Python" ,after calling the function, we should see the output "Pyt"

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!

Answer:

c

Explanation:

RELAXING NOICE
Relax