Write a program which accepts a string from console and print the characters that have even indexes.


Topic: Write a program which accepts a string from console and print the characters that have even indexes.

Solution

s=raw_input()
s = s[::2]
print s



List all Python Programs