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


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

Solution

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



List all Python Programs