There is a variable word defined below. It stores an input string. Print only its symbols with odd indexes.
If you start slicing with an odd number, set the step value to 2.
There is a variable word defined below. It stores an input string. Print only its symbols with odd indexes.
Sample Input 1:
caramelSample Output 1:
aaeCreate a free account to access the full topic