0% found this document useful (0 votes)
60 views38 pages

Python Notes 2

The document appears to be a fragmented and disorganized text related to Python programming concepts, including string manipulation, list operations, and basic programming functions. It discusses various methods and functions such as concatenation, searching, and modifying strings and lists. The content is not well-structured and contains numerous typographical errors, making it difficult to follow the intended lessons.

Uploaded by

imrblack33
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
0% found this document useful (0 votes)
60 views38 pages

Python Notes 2

The document appears to be a fragmented and disorganized text related to Python programming concepts, including string manipulation, list operations, and basic programming functions. It discusses various methods and functions such as concatenation, searching, and modifying strings and lists. The content is not well-structured and contains numerous typographical errors, making it difficult to follow the intended lessons.

Uploaded by

imrblack33
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
You are on page 1/ 38
Hoctule - 3 i Siecings + Shrug & 2 Seqmne 4 “fh rdutad collection x TL & a Soquene il + Th i» te built th ae: » Gtr & to Convast othet chatodiy Pe +o tere Lyi Holi xalico ' Bugle atouble 4 Ginig Tie giving an PS inhiati tad user “SN > w tevip wofte - Course ef python programm “python pregvanmnd Comte = Cousse =“ pytieor progvammen - pattie he Gtorehg creprrasented wend apasee = PYtNOn = poogzamnung Go, Ran Kee inpuk wseng f oO comwese = 10 ct ents touxso 0am) Gnrter te Corse Narn Pee programeung Gi? arre) Counee = eta (inpuk Centex the Comune Mame Biving todex See « Girig Cor be accessed Udtng thdax. 8 | * The trdew 6 Frost chavaster Co 0. and last thaxashee th-l- «x inden Volue OF bx presser o qopresented iam de, o- 5418 qt wis 13 lb IT Course = | | iA yg -1T 46 45 ets “ett aes s1 -& Th 3 2 ot * stoug hos neg abive inca wry also. (ouese FOF >P cower C13 > ur Lower co fg, Tene Eeae es String Pos ; a a a Cousae= python preg waumumsng : paunt C cowsese ) AP-- py thor programed i paint ( Court ted) a £4890 S05 gz Stouq t . Consese =‘ Python prog rarneting § er br (0, fan ceo): of orge “ )): re paps ( Comese CES) ‘n Shreigs au immutable Fr * the Strmg Ore cxuatad thay oat ie 8 ae an 1, a! ah fy 4 mio diy an exishng at 7 * oOo nw atrry # aha. Naset abe, 23 :- heneoN name £19 ae Tae gs HTT Six 0 pescators u Coane ato? cab) me "pe tle” a w plowld Ae aes artS2 ‘ ui part o) i heat prwt (s2) ie a erent a arin “| Se gait 8 = Bay age op’ se AAP a append oppent —— Ble ‘Yello’, ‘2 Co Srket gout paras’) Ly énber yoo mane: P 32= input git 28% 7 c Ban a Aine ee 4 pytton rm Hello y thon 1 woh gt erry r ith raw stoug used to oppend existeg S409 ee 3. Hullipiieabse 9% FSI oo (= b= “Hello Be baat?’ ett! = forecast east B. tanks oot 0 BCE) | Ze ne ere * Bronte wih© : _ “owes atade with pretin 9 ee aie Rabe Oe ; ~s xt panes CPOE” Pesan oo? . hello” aidanitn C=) ia endowiin ae ia : 2 with Supt oat 4. find (B47, beg end) Cheek aly present we given ainhg . ¢ found ble aol Posi tin ak urrich Sty Occurs p16 & ’ Bz | Hello World a2 8 pd Cw ost’) pent (9D > 6 y pus (at, beg ord ) ee Same as pid but Search ajar . ge ae aad EE” Hone tae ne 8. Mend ¢ ‘utord') Prt io) > IF 7 T. — indeat ara, beqverd ) net pi Z | chow ¥ atx Present th given atrng: | ebwens the posi tfon ak which Ste Oemued - | ge ‘Hello orld” | pe ge thdext' eid!) print in) > 6 $. iSalnume > : are yelauns Tuo 4 string Contaus both Haxombos | Othostwise Fal - m S- ‘bt 5" print($. igalnumey) > True - } 4. isalphac) Peaieh seers ebwus True 4 Stroy " python'. esalphec? > True - lo, csargezO Yebivens True 4 Alnng senbains ony mumbo | ' 123). is Agito ou ) pytton!. &AgeO > False - is lowasted eho True 4 the Atring is ‘hello! . (2. (upper) VFetwins Tra q tha Steriny bw lowest (> True - ' "HELLo'. Couppert) > True - 2 Vaspate ® & Lower Case only. Uppattese only. voli True i the strng ts urhite Space onky « ; aa . &pacel) Tru - Ue Lowest) tonvertts String fe fowesttarel ' ‘HEPLo .lowart)? > ‘hello 16 Pratc? rm Lonvents Strang dy Uppercase ' ‘hello’. upper? — > HeLLo | Ww. Btripry vic Sista ee rhb spaces & shevied So Ramoves all Leadiny ‘Hello! ‘ Heflo |, givpO > tt. LsteipO . Removes alt Leading a © Hello! Bhipor ‘Helle 1S. ¥Strpo wemos cl trashing eee ‘ ‘Hello '. retrp 2 | Hello 14. yeplae( oid Binéy , newstoug ) suplawes all octuunus of a= ‘Tempest! Ve ) gic 8. Heplaw C er jet pwins(st) —> Tempel: old dtrey with arene , g- ‘Hello World ! S38. gaplace (‘Helte', Buy’) | Prot SI) > * Buy Mond ’ | fo tite CY yebuxns He Atringas @.ch word Atartig Lettie uy uppers @ 92 The world us beautgut’. ble) | Pret(s) > The Horld Ts Beauhiful 2. BwapaxO 7 Toggles M. Case ay eveny chasxasue. it. uppexcay & fowarttase 67> Aoutactase flo Upper (are Prot Hello hoRéd', Swaptase ¢)) HELLO. wOrLD' 2 Goin (int) . ts jouis a Liat of S7UyS usury ofelemaler Sa 1A. join ( E'abe! dy, hc J Prwt(s) _» abe - dep — gi | St = '-' pow ('halle!) 5 b -el-I-0 = ate iene hit Aubsirras Separated by Ha Bpetipied otelmibee. Th ro i fplits on all wWhitgps | &. The World i bealipel splibO) Prot (S) > Lo the" Shterid) “e, re ni 3:' abe, ef, ghi'. Spurc’, oy Prax) > [ abe’ aip’, fi I. | PH enumerate (str) ’ peas re crete en can 3e'he tle’ Pring ( d+ (enumerate ¢s))) i 1 Leo), cre’), Cat, O81), Car al is. min (Sta) | Tetons minimum be at voseauby 4 Seog. © mip (hello) > 'e [scents ae aes maximum asc choseactes X AL stot | | max ‘free! 2! BN okey DA Bubstrng & % Btowng & Catal Slieuy - >t & te gheung Bpoe > 8tring [ Start : Stop * steps > Bup also as Stride: \ 8- python ort SAD +54 324 sh nda Prot (BE 24) > Prick ot He anodes fron a by bents) 6. — | eho Gein ; i dan(s) J > Staxt fam ot urdaex Gil Speripeed (Peecnicauh Sep value - 4 on (i), prot ( 8L2:8J) > (iv). Prot ( sPikz)s W. Prat ( $€-'9) > (MW). Prot (80-253) 5 on =a ‘ it), pret (s[; -2]) canaries bid. print (EE: a) i y ! (9. print GER :- 2: ~17) oe : - | / t yo (print th werene) (Con ProeC lit -3) 5 -3 -4 5 nohtyp Pant wm Tao: | gtark OM inden ke Pee y Pont th vevoue orvaet- (4). print ( 800; fants): 27) Supe every alterrate. Chavtouby - Pto 024 Aa 2 oe GD. Prot 8E.+ a3 Enea to wo Pr 08 Sips 2 abterratr charachie - ; 40 aaa 27 aa! WO. gs Hel Ean ae ap AS Bho a “ht to n-th Hi-le -& SLi. 39 Wo eohwhePh Ale ae ne wv _ &tm/ —b S7dO wetuuns te BSc Coc oy He chanastor - eh: R’ Prot ( ordCu) 3 g2 Prast( hye $2)) sl 4p a cost ne Becaieg Used to chuk given Alrong a present ov not = ‘hello! Proton! in Bh ects Print (‘ing os) > folre Btrug Compatison Btrig Comparison O ~~ ¥y two Struge axe cayal, Ue Tehurns True . Prit( abe == "abe ) 5 True - le ow ¢> 4 2 Simays aoe not equal d rrohuunt True - Print ("Hetlo' 2 > ' Moris!) 3 True. Poot U Hello! I= ‘Hew True 2 True whan frost strung & qrcabr than Selond stag . Prot ( sabe | SMatsed!) 3 Torte” & True gohan string! is fasten than trig? ProtC abe! < 'xabe!) True - siecle a aces guna Cai hag a Ago T k= y gfrtngt & heat ov vegual & Sia | Prsn(iabel oe V abe!) a3 True Prrcht ( “Zebra = 'abe') Te Past ( abe! 4 = ‘abe! 3 True digt es + list oa Sequena of abemonts ¥ The clemante ase Sepaxatid by 4 Comma . * €ath element th a List Can be gory cata hype i, wt, oat, String ete - *~ CI & used to represent fet * Jat ® Hubtabe. The elemant Value Can be changed * bist & aclemeod wa eng the Wdex. ee * The todix Atlante prom O and ends with Qrte-t. f-tI is « emply dest - oO ' 2 3 @- LC to, 20, 30.5, ‘ Python! Run Hme copuk ae. a . pan ee hee APPend¢) peaneliod ts used fF clumint bo te entiting fat peo 1 for & tm range (0,5). | A= tot (wputo) L. appard (x) Five ebemonts asee 2 = C to, 20, 30, 40, 50 OPT] 21 Sust | oppercted ento Des Prin He Let oo! 2 3 4 Le to; 20, $0, 40, 50 Priv (0) 5 printe fhe best Bi | Lito, 20, 30, 40,50] | Wat ton be Print Usng thdex Value - Pot(2 Cd) + 2 fon CY Thes pun cteos t used to get the feng thlor> Dumber ef elements in He fist. Le Llo,20, 6, ho, 503 Sia= fon L) ote Prbt (size) 5 & Traverse the List WD. usa tr Loop - i) Usuy Tange & dex - | . iso 1 2 3 as DL Cre, 20, 80,46, 50 | Le (ie, 20, 30, Ho, BO i fer i & range (0, fon (0): Print Ci) Prot ( £013) oP {2 to go ge 30 30 ko do Dd sd | how ¢ pornds fhe hee ¢ pocabs Ba teed eluents vo the Lot of te Lak @ update th Lest 7 o 1 28 & ; f= Cle, 20,30, 40, 50) bt's 1 hax elemants LOI = 222 juni a] BIDET AP Changed ap 222. Print (L) > lo, 224, 30, Ho, 60] | Pane ees updated using (pdox Maleta- Basic fest open ations I. Concatenaticn + } jours two Lisk - Lis £4237 Condatinates Lard do d2= LAs by and Atowes to bs. dg- Othe ole prnt(hs) > [lr 3, 1B, 6D 2. Repebthir » : Rapala Lal stemants io ntimes - is C23 hae 2 +*8 Pre tha) op Leet Mee i 5 A Max) -- gebent mawimum Valus the Lok - f= Cw, 949, 2&5, Be3 Print ( maxcl)) > ae” 5. Pniot ~ yetuene minimum Van 6 the bab - b= Cio, 49, 246, 307 i. Point Cmn()) > 10. b Sumer: adds the Valued em fhe Lad that has humbars L= Cio, 20, 30} Prat (Sum(2)) > be 1 Bovted() ». vetuent a row Sorted Bish - Le C 40,20, to, 307 Liz Sowted (L) . Prst(Q) 5 UP. Lior 20, 80, Ho'J

You might also like