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)
13 views
UNIT2
Uploaded by
SazzzNiziyan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save UNIT2 For Later
Download
Save
Save UNIT2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
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
Download now
Download
Save UNIT2 For Later
Carousel Previous
Carousel Next
Save
Save UNIT2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 31
Search
Fullscreen
@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 tanSa { 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 clioRecut 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 ateba 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'saD 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 aToi 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. nNO 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 aeOutpt 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 ecertealNeskng 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 * stakeNe 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 SRgi | ey 4 i hs Te i vss noe Hm DE |— jal \y lo—y a y4 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 enComm 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
Decision Control Statements
PDF
No ratings yet
Decision Control Statements
26 pages
GET 261 COMPUTER PROGRAMMING
PDF
No ratings yet
GET 261 COMPUTER PROGRAMMING
26 pages
Computational Method Note
PDF
No ratings yet
Computational Method Note
30 pages
Python Unit1
PDF
No ratings yet
Python Unit1
29 pages
introduction to python programing
PDF
No ratings yet
introduction to python programing
42 pages
18CS752-Python 4
PDF
No ratings yet
18CS752-Python 4
16 pages
Unit 6
PDF
No ratings yet
Unit 6
12 pages
CD - Unit 3
PDF
No ratings yet
CD - Unit 3
13 pages
PPL Notes
PDF
No ratings yet
PPL Notes
22 pages
Scan 24 Nov 23 13 05 34
PDF
No ratings yet
Scan 24 Nov 23 13 05 34
30 pages
Chapter-2 PWP
PDF
No ratings yet
Chapter-2 PWP
17 pages
Unit 3
PDF
No ratings yet
Unit 3
36 pages
Algo
PDF
No ratings yet
Algo
11 pages
Computer - Practical 2021
PDF
No ratings yet
Computer - Practical 2021
16 pages
DocScanner Jul 29, 2023 8-16 PM
PDF
No ratings yet
DocScanner Jul 29, 2023 8-16 PM
10 pages
DocScanner 06-Jan-2025 7-52 pm
PDF
No ratings yet
DocScanner 06-Jan-2025 7-52 pm
13 pages
DocScanner 29-Oct-2024
PDF
No ratings yet
DocScanner 29-Oct-2024
37 pages
Toc 1
PDF
No ratings yet
Toc 1
25 pages
Python Programming KNC-302 PUT Sol ODD Sem 21-22
PDF
No ratings yet
Python Programming KNC-302 PUT Sol ODD Sem 21-22
22 pages
Python Unit 1 Complete Notes
PDF
No ratings yet
Python Unit 1 Complete Notes
46 pages
POP programs learn more about the day
PDF
No ratings yet
POP programs learn more about the day
38 pages
Scripting Languages Unit - V Handwritten Notes
PDF
No ratings yet
Scripting Languages Unit - V Handwritten Notes
37 pages
Python Notes
PDF
No ratings yet
Python Notes
49 pages
BCP AB
PDF
No ratings yet
BCP AB
65 pages
Nitu
PDF
No ratings yet
Nitu
16 pages
toc assignment
PDF
No ratings yet
toc assignment
37 pages
PCD 1
PDF
No ratings yet
PCD 1
42 pages
Assignment (CS)
PDF
No ratings yet
Assignment (CS)
7 pages
Cs Notes
PDF
No ratings yet
Cs Notes
28 pages
Cnotes
PDF
No ratings yet
Cnotes
85 pages
CD Lab
PDF
No ratings yet
CD Lab
23 pages
Unix Unit 4
PDF
No ratings yet
Unix Unit 4
19 pages
Python Basics (Only Till If N Else)
PDF
No ratings yet
Python Basics (Only Till If N Else)
12 pages
Computer Science Notes
PDF
No ratings yet
Computer Science Notes
36 pages
Java Programming Code
PDF
No ratings yet
Java Programming Code
30 pages
python-programming-handwritten-.notes-
PDF
No ratings yet
python-programming-handwritten-.notes-
109 pages
Computer Work
PDF
No ratings yet
Computer Work
42 pages
pps unit4
PDF
No ratings yet
pps unit4
34 pages
Predictive Parser
PDF
No ratings yet
Predictive Parser
17 pages
Admin Notes
PDF
No ratings yet
Admin Notes
63 pages
Focussed
PDF
No ratings yet
Focussed
18 pages
Chapter 2 Python Fundamentals
PDF
No ratings yet
Chapter 2 Python Fundamentals
33 pages
Unit 2
PDF
No ratings yet
Unit 2
8 pages
Compilers
PDF
No ratings yet
Compilers
27 pages
Assignment 03
PDF
No ratings yet
Assignment 03
11 pages
C Notes Python - World - in
PDF
No ratings yet
C Notes Python - World - in
291 pages
Complier Design
PDF
No ratings yet
Complier Design
36 pages
Wa0000.
PDF
No ratings yet
Wa0000.
54 pages
Lab 2
PDF
No ratings yet
Lab 2
21 pages
Basics of Python Programming
PDF
No ratings yet
Basics of Python Programming
22 pages
DocScanner Oct 11, 2024 2-49 PM
PDF
No ratings yet
DocScanner Oct 11, 2024 2-49 PM
52 pages
Data Structures using C (Complete Notes) - Srishty
PDF
No ratings yet
Data Structures using C (Complete Notes) - Srishty
84 pages
Automata 1st Unit
PDF
No ratings yet
Automata 1st Unit
48 pages
C++ Fundamentals (DSA)
PDF
No ratings yet
C++ Fundamentals (DSA)
33 pages
Python Notes Handwritten
PDF
No ratings yet
Python Notes Handwritten
25 pages
CD Upto 31 August
PDF
No ratings yet
CD Upto 31 August
28 pages
C Programming Language
PDF
No ratings yet
C Programming Language
55 pages
Os Notes Part 3
PDF
No ratings yet
Os Notes Part 3
30 pages
Flow of Control
PDF
No ratings yet
Flow of Control
9 pages