80% found this document useful (10 votes)
28K views23 pages

Class 12th Computer Science Chapter 3 - Working With Functions Notes

Uploaded by

tdewangan213
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
80% found this document useful (10 votes)
28K views23 pages

Class 12th Computer Science Chapter 3 - Working With Functions Notes

Uploaded by

tdewangan213
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
= a _ grovp oh stahmunt Lard any retion Pam. And ttt can be invoked — Stadt 1 Fu_collection, fibrvaruy ae Declaration ot Set of 4 Hiens du Soxeel. sina ile called Mopug ard +h Obbroach Gs known aa MopulARTZAT roms. | PROGRAM HANDLING GAMER W— Sora pent ve -fiepen tua at ‘oma Mra iy coe want te aige nang foun] Tepe then we have omit | a plac, cy fey tensa yl tt oat cf ais _ he with dundign ete 8 ras coo Te enly eri lotatien- 8 Bae Rae sae “Shek bodinma sped fie stk) a Common _skwohoting ee that lla auto uma — pier af “code : oupeate in” ar a F pat of, “pseqiar i a patel ave lie “awe OX Sub -Soutiny — mudhedy Peedi on | Sub program: —_ - © 1Syrdar ts wate User clfinid Farin df Randkion rome (Ceara Sepufid List of poramétas J): Slatemunty - - - a - _ Pow to ouruben = BS + Kup word manips the kat of, isn Nadu _ fun dive pame nuat bo unigu. and flows naunirg suns Sam a3 fox _iduntyions So _ funtion can tas mats: Tt au optioral A tolen (3) fo monk the enet _4| cen headuiy _ funtien Can Contains en ox more stetierant pedowm Spe pic tuk a An optional orctwun Statemet he geet _ avd m the funcHen + Farndon rrua't tox called |Inwobicd to execute Uda ws undinttancl €ach of the furcioe typi temp te TT y 5 au pune Void — wtiamfo “No pear on an int (“4 Pada Hara our?!) _ paint ae gare a — Fil oe —_ — 2 Fandion with poromulo bact no _outunn valet — agen inte _pasuntheaw sepratid Neale au posed pe penanele at the tm “4 —— — . stabte. (nau oe - . — HH ‘ tums er “pub (nbn 4" y=” ynumtd ) a he (tin — tay sant stable (n) 7 with _ponameton bout aside vale : a oumiagt (nut yfuum2, rum’) run) + - _ Y= (rum 4+ nun? + numd+ num Y Io - pe a Value ae oe iret ne oe Nomben™)) ntpndy 3rd) Sd) ath store gt io vada Bt) Ue with print () tt) ein ony tapunion Ss) funcien —_usith stun 3 eq - dak Gabe (ruse ¢ et ner nun QM = Int (ipfpux (Entir Bry number") = cub (NL) a eae (“tube of numba Be ", ec) _ é feo Cube (run) * os —# stature b nusn® Rom yum’ “nd = ink (input Eta Any Number 72) | jesse (Farbe ofthe pembor au", cube (n4)) _ —4 A ~ canbe (no) | ; a sutwu “nun * nun * nun — ind = Wi [input (entin any Nambor “Nod = alt Cubd(ni) i ({Numben + tube =" yval) Ge a Nuun * ntuM eutwp G —— 7 nd = int (input (“etme Ana Namben I) Ad = cube (4) pont (“arbe = 7, Vat) . rt (input (“Ents Roedius™)) - __ant= arta (n) ee pair (Aveo of Gretel yan} wll! belome —unteach able cod G2 df Video | print (widens to Pun civel’’) (Oedome pratt (weteoms()) = a _Weliome to Rupaion | ; : _Webcom to Function |! _ _ a — Seam sealunn (“Welcome te unctisn 1) # fromeken ard Aigumunt to. 1 function ‘= fora mebou ove the “valusl) ) provided to the par enthuis whin we _ uit fundion header Then au the Natu ouguise by fundion towork er Toru morte thon SF sarrulan yO ut bu gupavvatid by comma (4 yo os | An -onguan mnt waa vc “valu hat Ss fused t0 tothe Nad whip cb Gi called Trothor oid _ waft ont Was |_proidid In Purch ymookt — Statemut = wet (input (“6 Erin Fadia 1) “on= aru (nl <——_ aeaeleoee mune - pu (free eto =p on) __¥* Type * Typa af ANguenunt SEE Eee = re ypu 1 ~Adual_ snaps salle =, 4 ‘peaitional “on 2 ; a - - ; - —- a i Si erguasnenits | OS 4 Nowa able ere — = a = ~_A) Ooitional Goquarnugh aru. equ pu _ Seo Juundics in costeet_ “paltional odin pda Said Teal nee ____ c= alb_ ee — 7 pant (ce) - _ ‘int {input (en out number "yy ee ge int (input (eta Second tuumber” My a a “tow x di pautd to a andy _ ao paid eb Ae inthe — wie peltioo ooh | Ein Pout ruunber 20 fae | et Ceord numba (Oo “dejan lae) aa a alb a 7 — pane) ee (rhe (“Entin AX yt ruumben")) re Ln (ee Eni ceeered pumber Neti = 1 Rn runt = te pu oe Sy / oo = | I Somaimaa we can _psovid —-Aajauts — Valu fox ie 1S Rein Hort angum wi - Tr thu com if we au | pot + pang on valu thin Aejautt Vobus t mg any Oat | Wille Sido” a - hs Default ut mut pet 4 owed “non ~Tataue Tyna fre by rd inktewt ( prindpol, woh He S)2 =e ink tout _ enc 4 te =O) timzis): Vodid- — ae mi Example a “— a cum ob (2497 bine =20)s moat i in “orgs (Anas : a 5 ont ee ond 4577 — : a prtintl oe a laren tie a _ - - a jaa daw Yu ( “@ ) “LAT rau ie Cen) —— a oe “gia si S, ; © irox* I canbe ah ote ee eat aa Flower , gil use Cannot te onda in fu funckien call fe you have a ep oxdun 6h tha . Oe eoquarits ord pas the Value ocean [ =e conkel ont Flea sly over a valiys se on . ae dovaustine —(cymb y¥imy = or fo Jin on Glas 7 _— = pant (symb , dha= 11) — ye specie ce =e (8140) | — OS ___ dnoustlins (*@ ?) a draw I “CH= lo y Sum - — 0) —— drain (ten 1 fine call thy pH peau | Pal fps combining . A n ang m rc Lore positicnal! — at fut “contain —_ fallow cel bg Pespsnick Keep poids Sauna 2 palquiseh, pena Yeu Cannot ~SHy a More than sai “should be be fom ths - — te a Se Yh mua be cthin 7 psting (nesonun ) __ Entn Pout pumber_10 En Suord number 20 _—Stoxtd._in Tuple 09 we Can OWPACK AL . dg Vol Speci me Som pumbur, of ent bler Soh te eon of fenchien ath teu se can Crample ef to th 4 Ma Sk sutwu Valu Stosed fo “Tele - “adato (54,3) - ; +s satu aad 1 yHlo 43110 — nk = int bnpur [rita Pout numbe: !)) [nd = Int (input ( Entia— second mambo) WS = dnt (input (‘fata Thixd fusanben”) ) funn = addlo (ptanasna) Chin itd fumba Zo ee 40) 1 Muli pl stun yal Store) up| ~~ fhatipis vertiapleas 8 pag " “ada (34434 a ay - A Suh | myn) A Ytlo. ZHO es pd = lnk (inet (erty fat quumber - L_= Int (input (Gtr Steord rambo) _} DRS ink Gnpud (éntin Thin number #)) - dy 25nd = addlO {ndyn2gnM pit (4) paint [p2)_ print @3) Gin fout number 44 tn Jecond nwmbtr 22 | tin Mink guambsn SS ss —— to wairg gon Coupuslen ada ion you at Gok mun as Es Leenu| Tus} f GAL jong, N70 t=, _| 400) . ee wy | “led) rr | no=M) een 500] oma zy] Lecal | TLE GAL TUEGAL MEAL ] Spa expat | i | 1uFEad | q [oda 1 nating. a “befest the poder | | Provichd 404 nd Musbiple vals | NoMa Asuguind cvrgismunt = _ | : _# Seb. 9} variate - Sh “muana in uohich part (3) of the es paxttelan Pies oe code 0% dodo a bleoy Rnown he tw ou brandy 2 rds of Ob Scopu's SS Gilebad Sop _ > bul ot Seopa, A Global Seopi — +A poms duclasud in top eve seqmunt (main), _a bro Gk gaia to __ te have, obel ol Scope ke yy fant we” Uae tn cntie fnigan — : Sha depirud —outaide alt fundions oe _ Fundion body Ga dale ee can be“ wid erly en and the oh block inde [input (gpm a bang) ina {Eton =e aa fuses) eee a te \wuable dyb an au ex 4 pbal Gope = | re (epi ol fete a yOny Swilepe (Eatin Sangin”) - ir ere byeadth) Ls Lon= asva(dyb) ae le Venable yb “ wu__ox al Behe t prunt ({6 Ao are ae shia) | a ee 7 a 7 [wp not —acamible hou because dk cudawd { “In in fundien _ arta), _ Seepe Su Jota) to wa ()e = “which a vovane | —_ Tumor + a Globel - | a wualig ee pire ay hong ay a fot local — Voruabler Ih ~~ th, Sarco SOLD fe ou_long as — a —eaiog— SEE ese sassapetarnsmnessseesaceseseeseresevenaee — Pout Chuck wWhutha nom nom au iN locab _Epsreenmunt 1 yi ya? OO uu. Nou oto " nova to (a wb) Global enutvonnunt — sat a ae ih pone “(i wv) » Guirmomunt af pot in abowe Stops Python _ehucks Ur 1D built - -fo _ewixenmutt, af a) ve path ing ah ane To modify etingy sing ard “woo contenate | the modlified vel a pana ely Skiry inthe ply» oualld soe Pease, 4 beng Sing Pauing Ski — 9 fal Say te 4 pauiing ching 9 7 ree 2 | __ = Vowels = - (ea 4? 0 uJ] few Sin She te - 1 & lowe 0 ins Vowels * Céunk+ = 1 —— count: = input _ (“Gita uy sking) C= Gountvewes (rag) fn = Prsint_( Total vowels “in, mag, Fea] Ousput = Gin ing gs the Yuick brown tol yokes in "Hu quick bfousn tae a We can alo pay jist ds > Ou to the pustable alta tu dint of valu ip pla |= rnostig usd In oda Chuckie ike Soviting » Hoek, ay At Ce bene ee eee _ cite ae t+ a “Double Fe (mytut 1” fos Ginx —— 7 rng tas Cil= rout CU] Fi (at = Lev 130 qYo 60,60) _ “Double C -- oe (Ea = 2), nytt) — _ Panting — tuply to Purction = Wecan also pan tuple _ te oo 10 pre Dw to ob immustodbiti ty pam =o Ae vals she Passing Didloray to function ae 7 aye alc olla! ay to a te | fundion a = +) Ow &® ih _muttabi iy Pokus _# —H Seite ©} aint) uncon = dn pyzhan: “fy dott we — eee pt me = thon - ae “a_mainl) ion a net mand atow __ Stach i - Ps ON 0% in j Ey pn Se Eg pe =a the epan in en Runction-

You might also like