Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
19 views22 pages

Cs

2nd puc cs notes
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)
19 views22 pages

Cs

2nd puc cs notes
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/ 22
. 7 “ence ukng a pon eagacer, dhe. lege toes ithe! execuse. * abs 1 QU 320 dhe” pig (a “executes i bub ;~Crenekates.. tener. Peck wed pubs ori_beWacea abnormal ta tian od __ thege-_ otcus ws x we Sorbian» © €x00S 22 QunPoaes + Osvors ‘ore log2cGh sexs 1 Exe domes) + * oli Syrdase | Crmor iat 2 thant > Neffeah sy a > Ranke Esvor Syndox _Cxtuw 2+ “oYerax _ Exwx: ave _deec when 92 Yoye rat Rothoued the vobes, yt the Python _ Pt YraraminG —tenquage ceuobihe wtathg on Paw gsarn. theve Gar artic coSSp_ fi: Cae d GA j ema —extepon?- een kt po len a RGus Syadac dee cd ee etceBub: the evi eywo _fn_execedfon iho eee Bath dr cxcePlive pa dbecvtoetinnnts of ony bull ao] excepors Ha op propataber exception hordlan| code 2 So excecubed. icavbch +d Foye A wit a as! ress chen the ye! fected Pa oO [tae Jolresel canal Le ape Ae Rete. cohen he tiger! ctrl Me da tle or esc bey while exec wah 1D Cavs ‘rag. bend Srdowo ph. yeoSon salang»taeth the» sald accephin | fo Prgram due ty wht Hane “the programmer hos cody Joke! | aL a norral Rereas ob. te pagan —-approprtde addon tyes honbleet a Ye E 48 dhs Srderamoded Saved He ae oceateg ball | le 8e a _ecceptioms tha cam >be“ tatsed —2n f__| « —Pihoa ore _exphafred - -2n bela: _ sable —Sao| dame _& dhe | Exelanalin ste Ba Fn oo » a sh 2 | esceplan L c ] Hot Ag te Hantsed.. ushion 4 [eden exer, *-| there 25 son ete fn: dig sis fete : z a 3, & g c 6 BI ts woe WPeKoton BecePweh.7 arr _ Seep tg ety ney 4 fb tate pal a. é ze pivsion =! | dmominds tm 0 detain | Caer ander EUOY © LR die condita %S reached wittoal deodg any dala by 2, On 7 Sb wasted when he ch & atch when dia ted] Ghz vated vitor dhe end | | ity bx_subserfpl_% a Seduence _| ce alh _ oped G) ee pew DIMGon Cove daisies by -2en. gd dhe Ce ings Cer, iis a vole 2 Nowe, Ger nateie . rn I _ wile 2: eke sa Eee Q-jrome Eves 17h 25 wassed cwhero torah | et = fo. “gobo. vortable nome & 1D ay i i | ol © defined, ol owen so |Srbeabtcr <5 35. wateh da Taeneed | acess tba Steak elaine: 2a he Griftare code} ost ci + at tetp at _obte 1 _— Aa ewe unitagkd —— optand bie tt fre exes. fb 99 walted eshes an opera] lS David fakinand 2S ide eee Flow Exe 2 yp fod a6 weft when fhe recut | foe Nunerte cogrtenurn Sen? [ade Ape ! 45 qupalted with a vole of - | A the cobb alton txceeds the |. —A_Q%arnmer Gat _aSe.cenate a —cethomns 1 mh ahace GxcePlac. tri sth once weRufner + Passtag on 7 Reel _Exceplions Erest Ppt “Ceajaltve check Goo) 7. iad ete ee ee Gece tea _tngram | ted Congdbe chek Cah the Python IndexPaden tate Chrows) an | — —— bt = excep rs | ase Rossel shamed ont if . Yoo fp sole “the — asset: sHabeimenk 2 “An _asseel —SHokmend a Qython: TS: vied dow | 5 vid sea Yok on erprestton, dhe Ten cleat Tn above example the asses dhe —Resul —aPler testing __hecomes. .Yabse | checks: for the vahure ok dhe veaable —athen toe —excceplton 2% tated. 1h?ssldemedl] in: case” the > number ges 0 nefalivess 35 -Genoxabey tae Ins The i beginning ol He | Acserdion tor wits be + Hipisn + Rundiin ox alder_a- Benetton ol, | subs?tuerd —stademends Wt not ee - execuled — Vente one PASIng__a rregalte - the mond ts. “z} value. C300) 0S) on con gurent: a. = : value @> resus Pa “Yassetbtng Cima, “on tatound ee} an _oSSexd —_stalem end rather reoys the reeStage “ores! Nejal?ve rumber evaluvaks the expression Qtren Sonediad dy | eh . le _ olka the asser| Hoyevord 3} expeecton _ Hondling- exeephom: 5 2 85 Ralse’ on. Assertion Enos versed - | £ whith: @n he hamdled —_$8te sony. cther_| Back and every exception a5 to be bondbe exten a ——foby Abe Vea averse $v oyatd ther rare Ext uSe Ak _—asserd 1 atakemard es caching ABS 2 deine by etd G_ add Pit Cote — of _assed_»stabenent*) >} cae 2a Pear tye Dee dd negattve? cect: Cautenber)! LmeSina-s px Snsdoucdions dn the assed Caumber >= 3)" nop. 1 These pth Guba a tebe) tod nicd Yow exception andl + _Gxceplion handling 4s @ ud dechattie hah eles ns caphathg sundine eavors ond hord ngs them So aS to. aw?d_ He “Peyvam. aang omsh “ Sinpovtadd pads aegardng _¢ ahedy » hordling ~ da Python Cakeg orf zeS excel tment types: S02 thal» specahte exceptin:_| Volley vane be. ! reall foe tcl sting 24 exten hondler —feTaile theo] — fc. ot es am 41 tom the _@syor’ TS enced dela dll qwcess od hon dba ‘ extepttons shen. on er occurs Python Snberdeder coedes ae ohfed caved ABS exephtae dagel x THES obfeel cond and Qibnaaling alak ERIS. Bite athens te = [x the obfed 9 handed. over do. He — | gunkimne Sytem So that con Pad | an__apps code sito handle. the exceptin “raha overabls-Prvcege . ahs CuéalaG_on ton_objec!__and handling - ¢4 ever _to_ | the turd¥ne System 99 called Throwing ar 21 “the comply ov Snkeprder Keeps | Arock oh Exod pasthins wheres te — Tar hos been occu “US ecephton tapdltig tan, be dow bath susers defined and bust Aa 2x der for Mendig Gacalon. 1 i rth f qroce se a du crealtng ium |e objec an — naw 30g. Mh i | syhern 9 —colted Throwstng an _exccerh Ope eee) an an cepa cate eile consong__o. — Rerkteular psogeara lm ‘Pweess wf Handling an! Ceeephons +P An eer erdourdened en aed al the toch. gmp too tec ‘Reand ion plere — |ocarch For_excephing _-[hondlex fa the carverd }ithgs luhon i |= the. calustacts /3h | |_tinktne Process thes Pmcese: “Pwsyeam __| }a_ Su8lable! handler: = 96 a Tetien Pn = I cadching Se a —4 he edi syn vol oble to: = | Rad on _afpdodar — excephton offer waching |» al dhe: method: en the caltttackis then] fy the Prvfram Cxcubiba Shope a tes | os CP sGtramt aa were exception mi - se Seti Pfc te ert hb, ee fs SS. cabchSG» Cxcephong. 9 excl: [excep loin = nameJa ie egep hin 85 —satd Fo bencend ahem || coe Box —eveepliin bending the Tae cade ed & desta. hondle-.at [| eecapha coma mma Ran + —Pardrculay exception 9s “ excaded. st any ceils 2 exceptions axe aught _eyscthe! Aspetblock: | Example =. po shewia 7 and hardberd i the excep! bloc 1. Prt Ch ay Block) : Dey the elk al eat ba ab - allie: o uneling= ors debugging a Pingrare | re ms S0 }———pxtel_C'nQominods 2ex0 » dens 8 Ctapd_C é @: Ortet Cay! Piged_Conecton Done’) ——excepl__2ero Division _Earmx! pital C* subside chy block] a He due vende al —Exnvs__excephin 9% handle Ph fhe fissile ty non 3 -deneetralos . cos}pa, ‘ he excep! _cleuse dhe de roessaye devesron: done» cot be sre ried Pn ‘case hy. 59. -veed sh eco cecepl dhe block 8 exceceded | Jake vend ra and the mespfr oud ste Aes bck “welts | “be exec aed Abu vers ih hes wusea —Noluc of dtm as zen (oJ, lock wis stop.?_| bt the accel bloc} ~—execubsn ob oe dy the —conha —athety Se “Adkmel excel Nock 25 exceceded..« mectoge ae doy pled oat ry - play. Typ cee ager y 200 “tte ett 4 an dhe | ron -odtewedl | Pier geet selaases phd 3 7 ~ vo: (ouclget oe - pred Cp Rectn Done ee : “excep --zera_DAP ston Exrrors shat pred Creston by 2esa 26 maf allased2) i) excep volue Crxao%: ped orga ina —— ase ah pried (Othe Auobiend = 2 : “we Con Pub an —opfonal ele chase | along. wwe the ey... except cl Pas se tg counktoy ts. TBlocie, a sr Ruka) Hebe 0 Exar the a Block we be nal ee cose Fhe stedenier re _Pnside! dhe se these 29 excee ef eel a Tg apie ai clause g dhe rn also Roolly—hawSes. Make statement Tistbe Bray clause er ahorys en + halker and exp ftn blocks” "av. > nob: clanse 8 Jus_been dekckd a _ yy bbcte andthe exception: Fhe: The oppaapatabe —erce a waed. st lt i tb aR the excép ton 28! at dhe end of the hy _| ables out except» Blacks ands -the_| cate A Batty clone a Gd Cuendlg excephiag weg hye excecution ch __the Healy Bloc a SSe hall’) | ced Copal Ceeder She dnontaohr)) | Quo + Cone Iden) eink ENTEGERS only | Prd COsoled —CRasigtam Cacabtve ger) j—trve_theer _are_Posttelely j-exceptin ty acer Sas tte a ctay, _excecited Te poe neodatn Gibe a! al rol exeePhon_oeewase | g pamthe. wir Realy Block <_te excecsed ede eno -otcurs—oreaned si | . phe Bek keg —a Paves Roapechive gale ca | 4 dk -- re | 7: { + \ ees Ble on nd) na bs 4b ave shored «4 cis clea ttn fn cee Bh ‘lal | here ore moty chine de vege ALR 3 $8 dem re a ws, ig A He ae a tae PS | Types of Mest: compulér oh Be. has: collecks Ros thal 8S 2a watery Rims. 1 ed Bes — 2h any Ses -4j exh. Bes? : “consiel a a cha ach ci ae Gan is he_oferus any dhe dito G03 a(n) San newline a dad cuhich acce5S J Me aw A chovac: a nourabersy file obtlor “dk wpeniig clad Fes sobes coh Ag as Shows ux, dk Cutvaberd Feabe by dhe human bay. Gxé~ alte of 6s Chery lou r rorfed by odd edtlor a2 cles Ibe CAL Coch We ok ded te lnritald by — 4 syortal lovacler caved oy A She ¢Ha)- Fort i ‘dower We ave usual es | vabeo, enet Fo beg cep ase hee —vatable cheb Pee hy ap eres eccrected ond edtted be cxeded by sreczal — sothvaxcs oF Piygrors_| this Funcaan ‘Ran E od. elle i fe voile Re — aby. ts ma dhe He Doesn:! erie] idlegL ake te el ae | ond Assigns 7} Ihe name. essoctaled: wh any cobe| fy cB. mks aan pr Bedume dhe acces. made Qn, “eshich oh xed Dy PBF dee aPg, ry. mea, : |e soe ope 13) Ble. as 2 Rdume He mee of dh a] Peste be accesrd, 4 ¢5._abso refer | eepiesenls ch _mmode 2 Ihe < Recess « made > se The ocecgs rab 85.08 dhe) aePreseabe — be made Ar echth “he aceessed. I es alco — ined evans Tor _eshitch_. | ee hos te be os Prec écase 2 welled a send Ninenmas ths Lops he Ble sas been = fea kc Cs Row xead2ng, tu) fore <> Fer ath xo Yor_appending— Descivelas ; iiphinal angers and _wotd ing 9 ad tthe end of ke | de afftel paridins Vr] open dbs Fes Mead umele | ond Yerary mide Sid Be Abe iby | abxeodsy extchs, Athy conderds wth be overvandden 18 dhe laegeatay sa ae Topas Ake Pile tnappend _ rode 32 Jee Ade doesned Bde oned | db xead mode wie Endo? He 8 Le fen Flo Qracod, 4 rete Regents of Pe [ere doesn’| orto) dhe 2h suatal beak ono Pl 2yCuby fad sed octtysedhe — | Yerbsercany ee File: an baw Sos WH an bd Jood _ssitde rede nabs dee Begtndhg ob elle clostg_.g te. onte_uie ! ore J we isotth amd ser smele 4 fen Ht Pe woah rmoberTd Ate Re obeah wits obs Ab Corded wih be over wt ena}! Spescline pn voctte te clase A Mee 2 sa close melted — teal chosing, a Mer Abe sysdom res | —abocaded to Ah | Gat He eng th ces 4. icing ace Eo he = lt | oy eo eat soelled. = Bs Duval, m tdeaace ce i aa ‘also opm tts Ble | a ha lhiggtace en a see stag ws8th —lasage the worete_O Teale ek ye _ hod - ah een shee oy The For jase Oe fy ee ee “oth me Cle -romet ocees ened ja Ne te clawie a -cunebes oP clones a | Th advardages _ of _ustag with clause’ 2 Hol ony! Ble thal 2c oPmned__.sPag Clause 28 Cheated Lghon— Lopin 0 Ble fn unthe mde, dhe Date laa be crosd ond fe Ble _chgecd athe be Pasi cB Ha heginteg oP ea fale, _ on dhe other hmds 2 cepa J eee 2 fines debe it be oddel of the aoe 7 ons lewbb soe aatlecd = > the Pratoss dale os fhe Hele obecl “ak He purabers of > characte. unten %h ord th dle He. “Ble Mtecef2a)s whth = 2s abe. Ae eed _B vse ad the sheng Gossedh -2cogunail ong eh oa oe ae Aesth © raha fax woitlPoy dala 2a dhe 9 rh. numeric Tearerhd Mh = cere is cloSe 0+ We Pethan + oe ci cathe a pagum | weed dhe forded ah nO 1 madlss s8 ; dade ore Po be antl an teed le The Soha _nadt_to be _shing chetive— weeding he Exarefle 2” weyabjed = die cl" ged. spaveke le (mats) | easiwin F Rom A Tet Epes “on “execubton ete OL wvallad alors lhe susenbers__of- chorackre “uortble 2b | veod2ag, dea Be 2o. pened Sr, et Hee Gl obich othe hens cao. These are. ‘i a : to sed dhs _Cnlords of du le S Palle abe Br i Thal od) Conbaintng BS tre : gah aa Dee at Sr + fol Pebun Ale nasmbeas oP chou be Qo dhe He a oe =i Teg oh a Bs a = —tantePnes Ot a Rc ‘Vhe ¢3': enedhad | consiher the Fela. mmyfile dad hos dhe Bourg tondends Halo shideds _wadcome to Ty thon Peper’ Jearn ond _undeest al — [aes Zopen Couside td) Loe aad ae chovodey, “The below | > Vros —Rvoen mag haf go seals Fa sph rcod_ tte chad | ___ wedtoime. a ope - Prepac eg | ex the beau —_ecarefla send Fes Bre Arora rg ttle hel - mashed sopen Cayfile tel 21 ' *ropbject —sreod Wines Ue Shy . Au dhs Best t aaa use fh ted Oo mebbod - : roy abe Coy file ed: _machid rood Cv) obnd bet _shudeed 7 oes ted Stee shes - 7. yuthcome do a 2 eam ond sled Ab dh oT sole T= Read + =the cerdtres the 24 The rod ne (2 endhod ¢ his _mellod_ rduing Bre From oo He ee 0 FA deme iS on tonal ad = rm a Za | ee te os rit nae "Pleahjecd.. sa chons and om) shang when S08 me —f we Con use a foop. Ths + || com of Re ) 2 Lh by Wrre _as?ng, a ~aeached « aie RehloO nd — Foo ae Oe er ;emeoh —reaby abs Ah bree ond Does along —-vstth_ al Re oe tos a ix Z —shtgt for. from) ——C hate oldeds nee: Endtee corded ase ne _separad “ aa best, hon A ut = abe 2 Foyle d ie UP al 2 te a words + Line opled co Pred _Covorda) “tetas “chedande! ‘ 'Preyrarnrnta "an Yhe', a ‘eed ] ce a pul ap =e 7 eevee "y ga we ose ralelos Gide | - Live >. 97) DA Gord) ha: seeker _mebhod 6 fae melted 25° wach to. Poston de Ye doped alo “avkcdlay “pathos syd ell sel Ged. Gr Jal het teePf past & - fe AN e Keep ah — Stina offsets eA —wshevesth oRsel__nbsaber af Lys i= a | dk Sale cbpect 35 meds Fy Se, we ward to access Paka Shai [oy Rekvenie tah ondicaler the chord | Fardom — Fastzon ys uke Len: do pe spencer of de We dyed 31 can ~ S$) etlsa. dh a “Rypthon sacdon, 40+ begntag = Yolo : —2n Tykes tego vat __4| ~_ i . # _ 4 2= ted of Ble tthe dura meg Fok ond distoy dah ligt 2 shal (ea hed dle Ble mus bec. open Malu wn Reads mole ond “Read gy! —begozn cuit « beget Prox befig_ ‘ The Pic lac Mopute €xi o Beoktel = open C oe - 2 Reo! ted ee ees “ a Are? Prind Cob) oo gh Plebbfede. A oe et ya. Heahyed. clotees eh >. reer Trocds everything a2 an abject Ea i a os sah: — she aged ee of Glew Omelod _ a Uh mead 25 used a oath Syed aes wi ae Conale no Shucdae Py sa ee jh me A eb Ie ag ade a see ~ A shen dl het Seales sa TSeKENG- - — “wear Bale-cbged_ 3 alge Hatton to dane te the file eats de Pale rome gle obeed. Lethe the NaubOrradteb ash [the Hood _vethod ge_eaed ty band ae waprekbing dada rem 0 bia fle De Scvalizalion 35__c_Precegs oP Conver “byl sheom back —da__Python—ohfed = des sabia Trees is —also_cali et cf T Python elgecl 20 faded = he file oed — ghyed dh ‘de okie cabled | Biticecl = “g_ Hootie enon | eile beadlPng using” : Ch Gecko, 1F126 J _ eS Bite module wf AS te Rtn ond Repl) dale Tah dow cok tas —oprlttabin oPdinptl] cod fle. staflorky uc tae baa Ae Tend Joodia melted tern sober _acbiag and dtalay2 “ * eeu! Pike ie -lole io _ | snabteabion 3° The Precoas eB add?ag "'eoh!) | Qo bthray Pele ond de sertalmadton 2e_ z pectle. dump Chictvaluas. Hteakget J prcess ct __dispboging dale Prom A Blodkjeck . clate > > 5 eee)

You might also like