










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Consists of programs involving lists, strings, dictionary and matrices
Typology: Lab Reports
1 / 50
This page cannot be seen from the preview
Don't miss anything!











































─
**1. LIST
PROGRAMS INVOLVING LISTS : -
1) PROGRAM TO FIND N LARGEST ELEMENTS FROM THE LIST : -
2) PROGRAM TO COUNT OCCURRENCES OF AN ELEMENT :-
OUTPUT OF THE PROGRAM :-
OUTPUT OF THE PROGRAM :-
4) PROGRAM TO BREAK A LIST INTO CHUNKS OF SIZE :-
5) PROGRAM TO PRINT ALL POSITIVE NUMBERS IN THE LIST : -
OUTPUT OF THE PROGRAM :-
OUTPUT OF THE PROGRAM :-
7) PROGRAM TO SORT THE VALUES OF FIRST LIST USING SECOND LIST :
PROGRAM INVOLVING MATRICES :-