4.
Write a for loop that prints all elements of a list and their position in the list
a = [4,7,3,2,5,9]
[Link] write a program which accepts a string from console and print the
characters that have even indexes.
Example: If the following string is given as input to the program
H1e2l3l4o5w6o7r8l9d
Then, the output of the program should be: Helloworld
[Link] write a program which accepts a string from console and print it in reverse order.
Example: If the following string is given as input to the program:
rise to vote sir
Then, the output of the program should be:
ris etov ot esir