0% found this document useful (0 votes)
131 views4 pages

Swap Even and Odd List Elements

The document outlines several programming tasks including swapping elements in a list based on their positions, creating a dictionary to filter students by marks, generating a tuple and squaring its elements, extracting digits from a string into a list, and implementing a menu-driven program for customer record management. Additionally, it includes a task to randomly select four winners from a pool of 100 customers. These tasks cover basic data structures and operations in Python.

Uploaded by

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

Swap Even and Odd List Elements

The document outlines several programming tasks including swapping elements in a list based on their positions, creating a dictionary to filter students by marks, generating a tuple and squaring its elements, extracting digits from a string into a list, and implementing a menu-driven program for customer record management. Additionally, it includes a task to randomly select four winners from a pool of 100 customers. These tasks cover basic data structures and operations in Python.

Uploaded by

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

1) Write a program to swap elements at the even location

with the elements odd location in a list.

2)Create a dictionary with the roll number, name and marks of n


students in a class and display the names of students who have
scored marks above 75.
3)Write a python program to create a tuple and print a square
of each element.

4) Write a program to accept string into tuple and extract the


digits from the entered string into a new list. Print the extracted
numeric list.

Write a menu-driven program to perform following operations:


a) Show record b) Add new customer c) Delete a customer d)
Search record e) Update record f) Sort record g) Exit
6)Write a program to choose any 4 customers randomly for
lucky winners out of 100 customers.

You might also like