0% found this document useful (0 votes)
13 views

UNIT2

Uploaded by

SazzzNiziyan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
13 views

UNIT2

Uploaded by

SazzzNiziyan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 31
@a" AP Flow Y Condirol ‘Jt & De ander -4 execuloms * Dtaterrenhh cr a pers ofotemula RO. He 0 pro py ws > Hoty ; eledively ar Qw be execute Jequen | Shwchively ad eurewer preg pean writs | languoge provtele Lite pe ee aysiieynencoted fe | Cen TONE aK Soguonce > se ne plakemunls wre oxenutae Jeg venta 2 Me as Te dsfautte we nao f uf Contiol 4 o pa fas cloud papronrrdalion Stelement | L Stoke ment sNotel- Aone fevt- Alatemert } w exectect then rlelémert 2- end then blatemert $ 4 on Pu the corel Meaches t- the endl » exawgle ¢ @ Utcle — fey dh dapul- a mun bee and print nb 1 Num = ent inpulC! Eten a mtn aa) a Putt ClErtored numba YY num) Aow- chon’ Car) Praus-dio grand Y Cnpul- pele for now Vee Prd Value. Of rucm ae Sedekeen = fue a al: 4 Drotemenl- Uo ex ecrdek 4 Coralie Ds Buk, ethenwtse arybhor Bae atobemerd- © eeecrder!. dleemdgs abou! wrktech det 9 atelemenl” Dy & bw encculedt depen dey upper the eul-come 4 the Com oli tan Sa { eae \ lle laws oa oe Note — the Condition becewes Tre Aetemenh Hak balerp te St} cnt he ekecuted OPherurse Sob UU be areata 4 Python prewtdes fastewiry Construct +o cm plement Jelectivoy — y u ft) If olie. Ptr) if aif iv) ‘f eB ebe Lye ‘ S HU: > th evecutes tue abatemedt- rte te “4 block, 4 wMe Concletion evebuste to True. obherurbr, 2h wit ob rotting Synlex : YU condiivow . Stotements exavmple :- wip As ovten a value cmd cheek xf yl is Greer Mow S. § Gz Cot Chput C\ Eaten a Value!) ) eave 25 = =E prurtC* Value enlenedt & es bran 5’) Flow chant- Flug clio Recut er Ur oe op Y- obre Gy —) 9 execuls We 5f block, 4 phe ebe irabement he execute! . Syntax 4 Conditions Stotement= elvan State ment apabemenD Labtele the cyl tod beta’ dye sshd ele pm wit example : ; luap to eter & number and chade y Ch gurenker, Hears 0 Ls tam, ge qua BS ( Ge, hr Crmpuk C' Eten a Volue!’) ) Bev Gey, 5) 4. prtatC Volue embered 4% pede than 5!) 4, oe % iS prick C* Value enbred 2 bm than S') Ay Frow-¢ hont 4 ( Stost ) J evden value fa A Valoe wo ay hon, 1 Ahan § abut 3 - {iow binge we greet en Hom % L we a | 16 ed ee oe) Give) ae EA: peau tik we Cw Be check amobhen tovdilior eee 4 Aol. igh fm wet Pe ies ate ba Cxa mople . Lone do check f al- mo Preder than © an equol to 5 ender muryn bie aud | ac PatC ivpuk C\ Ector @ mnuvaby)) 24 ays: prirt C' Gntoned values 0 gqreslin hoe Se) 4 obrf aea0' $ prisk¢ flaw dnont— bows chiegran (Gtad) ‘ Ie ») 1 Evbenest Value 9 equal do's aD it elif else > if ett ele bloé vs Wands As perform (arbor ureA whi One 5p ah ov JY, the Af anol ouif cordilions forts, Syrter x» q Condrt'on ¢ Stotbemends elif Conditions! Spade unentr ebe ¢ Shede wre nfs Exam ple! tone to tes Of yum ben Grol wemice es Oh) ean shaw S or quot te S ar dy thaw 5 1 ae cat Cinpeh Clerbr oa number’) ) 24Uays: Be ae Value gered Jhon © ) Hh ei he eS pba a eauad & <') : Chet at C vale 2 bas thu. 5’) . G® QQ) o He thruotion © Ge atows repetition 4 Ate af need Bur Motatr Condilios 44 fuited: rant gual. Vie peels Us Peptbon d™ Han dae ) for i) UHehe " Yet, Me abatement tele “The vamse) fem don — « wed -to generate bark or Peg yone of nuve hur Can Prbe Aus ) Ne shou the fottowtnp fovn QD varge ( Stork, Stot, step) Gy rege (ehh sto) @ serge ( stot’) ee - Ste lo he iS ome * | : pory fs ! SJ phe ; ag Ma U both pm e We law be ot p' Wine Oop Ae He on JY nate giver phew ow Val ino poe Mh 4 0. (20? © Seps- &xd pout ie ET lias oe pied Poor’ Ce j Otte. pppoe on ol phe ie at 3) pe ave, oe er C be he + £ jie Caw ates str “aed ptep Vv @ the Bn gly dion [wed vesth for Asop « @® ALG VEN e- LB, Se Cee) cot generate of cpu bent qos oO 404= Roe Onl? 3 Oe ® vamge( Uo genenate Deg vom & snuiren bess foor aco, Co 9) 3,4 ® VON e (% 1% mum er are & iy) ob}ainect by L Ho” yuu a Dkort— G) verge (= 3 3? us gen 6 Heyer - Biv 2 her ~9 Le. 9 9, -u Use gener g numbent wi ven id ceugrnts send aT oi cfoor = Syme x a ° vt ce s Bo Vecebte name to Aegon Stotament teleone Aequence caw bes os © St a @ us © Range funclion © Tuple, @ Didiovwry ao a WAP te genude squeme ff om dem & \o, b fox fem rage Ga): 2 puke) pase Wo? we ee YES Stop (G5) while ? Siyntan i tattle condition | Slodements exaw-ple : WAP db gemusede, Beg Yen A Rn Dee prem es, (0. 1 Yum = 2 2 while num <=10% 3 pret (our) i Yum = num +) Ftov-clhagl- (Start) low dinar wume 2 ‘ ther Sh we whtlet- & PEs irc thes she dee orertor os Russe bul- al whal- prinl- db unt be fulfited cae AU tan knw * xa mpk- WAP to evtern ~ vale AMA Lhe wre enters by? Ge Nune shite le Ee ac (np (! Enter o yal”) ., poutrd- (aun, tefens do new velue whihd pe) tWovleeng . enliok seltirg: a Hefers to None rom Line gio 2 3 Wwevkeing atu be - Pies, bptdes ode Nove True b b b Tue on on cn Trae. nN O break, @ Corttinue HH boreok Ot cbsreoles the Sev iby hippy of the cstotements written offen a the ost exam pk’ L {> hth Namge C1, In)? m petat Ch 2 brenk i pata (Sbye!) Labriednt: Hore 0 wt efor el a, db nthe! ee ow rt mw wa dhe tote Utth ent un execute ne n0, 2- At Line (US oe Leerp ustede nemb. ae Rythen dos lie fame shade mens a er fe pe ¢ 2 wine d prink the ae t encaanters aatth break. Jhomf i the amt woh en He Se Awop i gre 70, 4. (4) ” Continue : obtuse ef Vexh fren ale ou te Cause the | sheinpits She. slrakeunemde voitlen Pies ab example : ay r tn verge (I> lo)? mies ContPnue yin C bye! rf ui ) Work ‘ Hore t ut refer wal aw ils “trie ira vel, ., Ae sor ge the cont ow ut ember Aine NO. 2 el su eyecute 4ndh dep a cs Uy “esl Aieee torlT rue h d+He Vedas and pon oy dee Ban ila fo... cad the “™ coo? a At prema of Lhe no.4 (ies pbipped . : . alee Oy rw a ge the eng, Pa DN Mia Sos te Let gw PHM ow ni coh a ie cn aed thee im, raw So She ee J ne ae Outpt Hate eo aes @® oan GS eae Loo p- else ustetbe mer ¢ * Athen allows Yor Ie use On fo Jsofr Mie, be, pote PR a oo execusfeot as 24 Ae ing deswnirotes mrekimo lly. Syntax! gee a © + yarbiderame ho Be stakewent else wth coke. ebe? spabewonls @ white Cond LOO % slaAlemerts ; gatemerls , efor 7 fy nenge (1,5) t l a prec) Chee + : pratl Ed gf Lop’) Loo tre! DLG VAMC “the . poroqrar ange 9 nuwles doom [44 and pee abe pani the +f execute he Norn aMy ORE Lu 3 y Eva “ Jep Le eram, i fet ¢ overt S72 a pore ci? 2 precle ‘ oes gine C) Eval 0) Lap!) oven? Fs ” oe prepren usd serorabe phe oder | and Hen ee, Lop an Dhe ie (aka! git pre bres pielem deve He ebe fork ut nal~ be et ecerteal Neskng Cond Plier aud lenalcers (6) © Aometiines if & Meguired db fof an OAT Con Aes 4 a cero enc Lor becomes Ayue oh fope: SL oO Spequirvek fotternte codacn el alate mentt artis an ofhey Ack Pi ther ado thes vfs Beppo“ ba uring the Concept cout Neoang Poten lod - ested Y and Jax Cevolltion ant Areneties sarpetively at vested Y ° o thes tote ment Caw be ) the hod 4 ip or OG te bodly g oe form |! foxvt 2° A “3 - 5 g Ati * es eee 4{ Aromat Peters obit cont Res See Hfcortttcr | ‘citernentS ea Upped ag ebe! Sete nent be * stake Ne cae ee aa co foow 28 tondiey ¢ state mend l a Condition ¢ Stkemen ebye: If eonditaen : Shake munls ee: ‘stakements Example - wre to cheele Y Yeor an a leo oo Wr a Cembary Year » Ge Gs Gre ee IE yar ehetce +')) 4 et a ey i = 4 db jooz=O% perf, Yop 220 % print C' the ie Dr an phe for a Oo deae ads We a Conturp year Jeng 2 tues 09 corey year ‘hub reat oe ts @ contuy yen”) ae tak Che “yeu & Just a Jeap year”) es, ee elicit patric" the yer mal 0 leap yer”) OL ie te ar Working: yeas, Yeon). 4==0 Yeo e022 EL . tostimsse yelar ws Tut © 1%00 creht He 9 Neat Cosi GM \ esas Hh BS Eve ned Corner gs | > oukpk 12 a el | Leap yor ® Roo nyebunyd Te Neg Cor DL se cesdas He ae ee OO an ay oops oe a aos @ pee yet ue Moebe iL magi Card es 5 outpt ' year 13 Jer © ae Gta a os Ef pele om Dene SR gi | ey 4 i hs Te i vss noe Hm DE |— jal \y lo—y a y 4 plerted loop (= © Love withue o Loop f eer ke + Jn noted dep. De Pannen Ley fenton ths full potential ae ie re, | of outer Lp. ondin’ Hanan me Oe T EG te eae ke ee fo teammnde ahwupbly Jo fotecustry por: bor | for vartbl_nam el) Pn beh aaa fv van todole warned Br Jaques ce Zi gute ments e (oom aE for Vv Le. name Po DEQUON EE tehile Coneliionr’. grate merdS form Bis papele Comet Leo & uakitle Condi Ford: Slate wn en Comm Ys cohite Elna % on Oe ce % dey vartable no me Stake ars Excaw ple’ ep ov i in yorje CN Se for 3 tn erry. C moe prért cy) oosking, ¢ § of 1 ) I 22s Baepk oe | a& Apes 2 B4c — a | | ee i Yy | es pe 5 epil- Bguet, Problema "Q. LAP to print the wenore — Pythov poathetinregh priate! Python Loatheprougl') Q WAP +o arnigu m wikte oe vaurtte. and print ue a= lo ’ prorat C' Vabat antgned fo vartatete a” ye) Note- PY thon interpreter usu yotne ow ae 44, Voou'able 2 Jef unartined + Ex pprduccd— Be Name Evwr ¢ erie Var Pable na wnt” o nae dette @g, wn do enter Jo50 reno booth afer phe produ; pun) Por C taper) Entor dive page) ng Hak Repurc’ En Fer Beer ne prod = rum Ae nem 5 . pote C produste 6| 1 nam, phe, nur, At, prod? g were fo convent a. volte entirad mcm to (an em2 rent C inp C' Enter the value to cemfmeler § ‘y) fez 00328 x OM prec! Value fe fut 2) dO \S Ae wap to qind the foctortal f & number num 2 Pat Ctinpul (‘Enter 2 jfk qotee pre he = pow €P ybramt ) 4 wat Ae cick 4 pre ruvrher onterecl by the wer Ds py: ost nol Ran Dp Count = quam = © pat tnpule ( Lenk = Pam & OS? Geet Foye Cees iF mam] 6 == 0% Coumt 2 Coume*) Srende \enker y Court 272 ; pane num, “p pater’) a aed) . War to print phe ares pation * 4 F a a eax for y in narge (An5 DE do o By xe 2, Os prank Corgent= 7 print C ) de pe ge ee \o tao 2 oe Se for i jn verge C1, 592 Ave j fn verpe C >: prtar C iy emds ' DD) pant ) | a gee ee eee Q Wat A ae g ven Keno 3 ‘Be eh : me 3 tg a ~oad Sum Me Pcie Phe bid) doo 1 tn merge 2, ntid) ¢ act =) as doo A in hea: yore ed Kava 2 save 4 (joa ¢ COAL) + Bom) pret c* Sum 4| the give) Aertes IA +

You might also like