Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
20 views
6 pages
Class 11 CS Lists
Lists ca
Uploaded by
ravitadesirasoi
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Class 11 CS Lists() For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
20 views
6 pages
Class 11 CS Lists
Lists ca
Uploaded by
ravitadesirasoi
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Class 11 CS Lists() For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Class 11 CS Lists() For Later
You are on page 1
/ 6
Search
Fullscreen
CUASS= 11 CHAPTER © 4 ay S_ List! Ordered Bequance sohtcth Ip mudable . can be chuaged after creation, Example: digt= (2,4, 63,10] 0.0 22 4 SS enclored in Pywore reuters [ Accening elem raat) — < print(apal-1.) ——7 "a Tadexing Ky Mutable — 7? L contents of in be changed ee Is ertabed, _ [Red “Cayeesl “Blue” ] Qutpud t Liste = print oo — > bareen f nge” . ne a a [Red “Orongs’, 4 Blus"} 1 eames Cronged. (0) Cncaten nt Ton two or more Lab (+) Spth = C12,3] Oulu Ustz= (45, 6) {1,2,3,4.5, 6) pri (Gat 4 Sint 2) For NOTES AND LECTURES, Search NITIN PALIWAL on YouTubeOepetition + Replteae o tisk (%)' — Qupul Lith = ['Maharethi J] [iMahavathi, “Mohothi”] pring (1int #2’) : @Membeghip? Cheds if the elumint Jn present Usk, Lipt = ["Haon” , “Bhyii”, ee ual print (" Haan” 4 Wath) print (" al in me @, siting 3 oe Ceca", area “SS ‘On sid te “Orarge") pans sta (2:4) ped (Aint 1 [ (3: 10} - - he ‘Pope ) pris Cage 1 422)) ae pried (att [ Of ee “rreen’ ] prin (Hint a (6: 422J) . [Red "Ble" wnt ai 8 Ppt eng") proniat ug: ¢ [farpe”, “Orange” KS es | “TRAVE A Ly Aceemi Stem dino Lal sequenKelly, tt for Loop; Output: sist = ["Hoan", “Bhyii” , “Maharedtiyo'] Bhs for i in Wist1* Mahorathlyo prmé (3) For NOTES AND LECTURES, Search NITIN PALIWAL on YouTubeHF hile Loop! Sik = [‘Heen’, “Bhyi?” , “Maharattiye') += 0 while 1< ten (aL) * prime Aint (1) t+ List Methods & Built-in Fun chiens ( gen () + reherny, Segth of the Mat @Lsel) > creates on empty tist ®oge end()~ appends Bing clement, © extend) opp ensls each elemondin @ingert ()-rinsert af emank/ oh , partivdor hades Ocountl) + returrdy.n0 of Hes Seemed oppor, @inden()+ chant index a, the ™ ocuence Qremovel)* Removes given elumud Ouspul > Haan Bh yi Meherathiye Oespod Watr= [1020/30] prin (en (tntd),) e3 Sint L=Aigtl) Uj print ligt) (lo, 20,30, 50] Wak Be LioAo.24 List. op nd (50 prtnar(nst 1) List t= (10,20, 30] Wxt2 = (40, 50] Uist. tebend (liste) print Cligtz) {t0,20,30, 40, 50) dist = (60, 20,30] Unt. ingest (2,25) pring ((i5E1) Aipk 1 = [10,20,30, 10] Ligt1 court (0) [10 ,20, 25] Kpt1 = [10, 20, 30, 20] L pried (ih sindex (20)) Lat1= [to.20, 30 J Aistl . remove (30) pring (tpt) [10,20] For NOTES AND LECTURES, Search NITIN PALIWAL on YouTube@® opty rehuns the elemunt ond abo, Watt [l0,20,20,40] Hemover from Itt PRE (listL-pop(2)) 40 print (lig #2) [10,2.0,30) (revere reheves the order, Matd= [10, 20,30, 40] (gt2.revenne () pring (I7s41) 0,302.0, 10) (sort)+ sorts the clemed, ligt 1=["Cal, “Ball? 20 [esl tah” tigh.sort U Zebra") pemd (4'p1) lista = C2 rwRe Mata. sork() [299/125] perl Und @ sorkd (> 80+ ond Mpta = (23, 95997, 64) aeangt Up PB sorted( (intl) priakiatt) (23,45, 0,64) nnd Ultat2) L203, 45/60 =L1,20,30,40) 6 mn f miin( list)) 10 met U) rink (max list2)) 4o suml) \N pret (Suen (ist) too lesTED List — lip} Inside Itz}. ee Outpus_ Mipba = C1,2,'0°,'c°, [69,91, 4,9 ri pri (Uat 4.043 (0}) For NOTES AND LECTURES, Search NITIN PALIWAL on YouTubeO fin Suggestel progroma 4 the Maximum in a lists a= UL) List size «int (Inpud ("Enter size of Usk") for iin range (list size J: val = int Cine uk ("Enter ")) OQ. append (vol) 6 rinds irimory 1 ist Max = ao] iat eis - Ore for jin range (lipt. size): H(A Ci] > max)? . mane afi] Lipid \ PC Mox Aumber B 2” max.) @ Finding the mean in a dist: \Y Onkpat bist = 01 Size= fatCinpul (No. of *y No oF elunenk % 3 Enter) 95 for 7 in range Cstz—)é 3 ists a ( kei si oO fre Se 43, 335333355 35333 um = for i in oom += hipe C7] pent (sum / Size Poogram +o a numbts in a dist > a=(1 She = ink Cinput ("Enter she of the Sst ")) for sm vange C sue) 4 Vat = int Cink ("enter Number >") a. append val) Key = im Cingu(" enter number to search ; ")) fiag = 0 For NOTES AND LECTURES, Search NITIN PALIWAL on YouTubefox i im vange (sre): if (a Gi == Key ) 2 flog = | pos = i+] break, TE (flag =="): Pint ("Element found at 2, POs; " position ,") ese: pant (" Element not found ) © Frogram 4o comt Frequacy of a ws a= CJ Sizes intCinpub ("Enter stze of the (i ay for {im rang (size)! vals = ink input ("Enter — a. append (vas) Key =tak(input(“Enter ni SS Frequsn Count = 0 XR for 4 in range (si For NOTES AND LECTURES, Search NITIN PALIWAL on YouTube
You might also like
Revision Notes - Chapter 2 Python Revision Tour 2 - CBSE Computer Science Class 12
PDF
100% (12)
Revision Notes - Chapter 2 Python Revision Tour 2 - CBSE Computer Science Class 12
12 pages
DSC Notes Module 1
PDF
No ratings yet
DSC Notes Module 1
56 pages
Data Science Theory Ashwin
PDF
No ratings yet
Data Science Theory Ashwin
107 pages
Computer Project Class12
PDF
No ratings yet
Computer Project Class12
13 pages
Python ? Handwritten Notes
PDF
No ratings yet
Python ? Handwritten Notes
73 pages
OOPS Practical Mine PDF
PDF
No ratings yet
OOPS Practical Mine PDF
67 pages
Chapter 3 (DS)
PDF
No ratings yet
Chapter 3 (DS)
34 pages
Computer Science Practical Amit Bikram Mishra Class Xii Science A
PDF
No ratings yet
Computer Science Practical Amit Bikram Mishra Class Xii Science A
18 pages
SM Practical, Eknath
PDF
No ratings yet
SM Practical, Eknath
108 pages
Computer Practical File
PDF
No ratings yet
Computer Practical File
5 pages
Untitled
PDF
No ratings yet
Untitled
12 pages
Module3 Arrays
PDF
No ratings yet
Module3 Arrays
18 pages
PPS Class Notes.3
PDF
No ratings yet
PPS Class Notes.3
32 pages
Python Handwritten Notes 1701013067
PDF
No ratings yet
Python Handwritten Notes 1701013067
73 pages
Smart Interviews Notes
PDF
No ratings yet
Smart Interviews Notes
75 pages
Raushan Kumar - 22scse2120040 (DAA)
PDF
No ratings yet
Raushan Kumar - 22scse2120040 (DAA)
18 pages
Python
PDF
No ratings yet
Python
16 pages
Unit-1 Part-2
PDF
No ratings yet
Unit-1 Part-2
18 pages
Array Extra Cls
PDF
No ratings yet
Array Extra Cls
11 pages
Raushan Kumar - 22scse2120040 (DAA)
PDF
No ratings yet
Raushan Kumar - 22scse2120040 (DAA)
18 pages
List, Defining, Slicing, Operations and Slices
PDF
No ratings yet
List, Defining, Slicing, Operations and Slices
5 pages
Dav Assignment
PDF
No ratings yet
Dav Assignment
33 pages
Xii-A 03 Ambedkar Singh Python Pandas Assignment
PDF
No ratings yet
Xii-A 03 Ambedkar Singh Python Pandas Assignment
7 pages
Python Programs
PDF
No ratings yet
Python Programs
25 pages
Python Journal
PDF
No ratings yet
Python Journal
25 pages
72fb2675-6290-4c54-b10f-a9d2d59c8230
PDF
No ratings yet
72fb2675-6290-4c54-b10f-a9d2d59c8230
22 pages
Dec 13, Doc 1
PDF
No ratings yet
Dec 13, Doc 1
28 pages
Array - Notes
PDF
No ratings yet
Array - Notes
24 pages
Arrays - Class 1
PDF
No ratings yet
Arrays - Class 1
13 pages
Java Unit 3 @72
PDF
No ratings yet
Java Unit 3 @72
72 pages
10 To 40 (C S Practicals)
PDF
No ratings yet
10 To 40 (C S Practicals)
20 pages
Python Program
PDF
No ratings yet
Python Program
27 pages
Notes by Hriddhi
PDF
No ratings yet
Notes by Hriddhi
24 pages
Computer Science Notes
PDF
No ratings yet
Computer Science Notes
36 pages
AI Lab
PDF
No ratings yet
AI Lab
11 pages
CPP Practicals
PDF
No ratings yet
CPP Practicals
22 pages
Python Practical 6-11
PDF
No ratings yet
Python Practical 6-11
15 pages
AKU PPS Pyq 2019
PDF
No ratings yet
AKU PPS Pyq 2019
11 pages
DS Assignment
PDF
No ratings yet
DS Assignment
16 pages
Dms Lab Sheet
PDF
No ratings yet
Dms Lab Sheet
20 pages
Module 2 Part 1
PDF
No ratings yet
Module 2 Part 1
13 pages
STD Xi - (11-20) Practical Programs
PDF
No ratings yet
STD Xi - (11-20) Practical Programs
16 pages
Problem Solving and Python Programming
PDF
No ratings yet
Problem Solving and Python Programming
34 pages
Adobe Scan 12 Nov 2024
PDF
No ratings yet
Adobe Scan 12 Nov 2024
13 pages
Unit 3 Pps
PDF
No ratings yet
Unit 3 Pps
19 pages
Python Notes Till 5
PDF
No ratings yet
Python Notes Till 5
24 pages
Hash Set Notes
PDF
No ratings yet
Hash Set Notes
10 pages
Python Notes 2nd Part
PDF
No ratings yet
Python Notes 2nd Part
11 pages
Python Record - 4
PDF
No ratings yet
Python Record - 4
29 pages
Notes 1
PDF
No ratings yet
Notes 1
75 pages
ITP-unit-3 Notes
PDF
No ratings yet
ITP-unit-3 Notes
32 pages
DSA Observation 1 To 6
PDF
No ratings yet
DSA Observation 1 To 6
28 pages
Arrays
PDF
No ratings yet
Arrays
20 pages
Arrays
PDF
No ratings yet
Arrays
44 pages
Stacks Queues
PDF
No ratings yet
Stacks Queues
21 pages
PDF Scanner-07 - 03 - 2025-04 - 36 - 47
PDF
No ratings yet
PDF Scanner-07 - 03 - 2025-04 - 36 - 47
48 pages
Lab 2 Anshu Tiwari PRN:122B1G190
PDF
No ratings yet
Lab 2 Anshu Tiwari PRN:122B1G190
6 pages
DocScanner Mar 18, 2025 5-20 PM
PDF
No ratings yet
DocScanner Mar 18, 2025 5-20 PM
22 pages
AdaModule1 2
PDF
No ratings yet
AdaModule1 2
41 pages