Delete odd index character



Problem to remove the odd index character in given string.



Example-1:


Input    : s = "crazy"
Output   : "cay"
Explain  : odd index characters are "r" and "z".   


Example-2:


Input    : s = "apple"
Output   : "ape"
Explain  : odd index characters are "p" and "l".   







Solution




s = "crazy"

d = ""

for i in range(0,len(s),2):

    d += s[i]

print(d)



Output



cay