Anonymous ID: 4b9a33 May 13, 2019, 7:26 p.m. No.6492740   🗄️.is 🔗kun   >>2752

def mirror(text):

mirror_point = int(len(text) / 2)

if mirror_point % 2 == 0:

res = text[:mirror_point]

else:

res = text[:mirror_point+1]

return res + res[::-1]