0% found this document useful (0 votes)
37 views1 page

Python List and String Manipulation Programs

The document contains programming tasks that involve iterating through a list to print elements with their positions, extracting characters from a string at even indexes, and reversing a string. Each task includes an example input and the expected output. These tasks are aimed at practicing basic programming concepts in Python.

Uploaded by

C. Revathi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views1 page

Python List and String Manipulation Programs

The document contains programming tasks that involve iterating through a list to print elements with their positions, extracting characters from a string at even indexes, and reversing a string. Each task includes an example input and the expected output. These tasks are aimed at practicing basic programming concepts in Python.

Uploaded by

C. Revathi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

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

You might also like