Date
P- Decision nakig
* Use ot Pass, btea and continue Astatemens
>fass statment.
The Pass isa
S a nuSttement anch thy python
intek paete tetutns a no-pesatisn (NOp) agtet.
keadimg the Pas tate ment
Nothi ng hAPPen S cohen the Pass Statement is executed.
mum C1,e3,4J
nu m mnym:
pas
ptint Cnym s)
’Comtimue statement
Skip the mext
)The Continye statement is used to
Statements in the loop.
Stotement,the
when og&am heaches the Contimye
the Stateme atteg contihy e Statement
Peo crm SIkips
Whileumn <Êo):
mum=25)Contimue
peint Cnym Page No.
\ooended.
Date
3Aek Stqtement. !
The BReak statement is ukd to Cait out o 4h
lool.
o0
So metime in a pglam , ce meed to exit the
ohena a ce &taim Conditiom tullg)ed
MUm0
whileCnum10):
mumt = 1
it Cnum=5): beak 3
pkint Cnun) toorede.
PtincLoop ended")
*Advantages &
& oisadvah taged ot Rythem.
=>2. Gay to lectn.
Sinelee_teodable Synto
Geginnek can le0An it quickly.
|[Link] Standatdibay
Python Comes with huilt ih modules.
-) Reduce s the meed wti+e code thom SAqtch
3. Huge Commumty
Commun Su ppott.
million o develepeas we pyhah
to nd dutotial! 6uties cnd Solu hiens. fo eAto
Page NO.
Date
[Link] Indegendend.
Pythen eAog 1awes Can
un on Gwind owsmac
gnd Linuz witheyt
majo Changes.
[Link] Multiple Phoglcmming Patndigms
RoCedy AaL
6 (Kocd goe tapid Deelepsment.
(ess codeaAeA developmen ne.
iSadahiage.
1Sloc
[Link] ideal oe mobile. App pevelopmen
[Link] memoy Con au mption.
[Link] n BowSet - Side paogcm sning
S,Runtime Ctkols
Date
Syntax and use o4 the yth while G
Fo& loop.
while
Syntax i
while coneittom ):
i=1
whilei<S:
4int()
it= 1
Used chem
when
tize.
The leo Condinyes as long a Conditien
Conditional 4epetition,such Qs keding
(nput until a Conditi
Cohditioh s nmet.
Date
Syntgnc
UJe:
used when t he numbe. 04 itelatonsis Khe
44e aAes ovet Seqyences ixes
tuple
Ldictioncay ete
108 i in kamge C 6):
Date
what suctue dnd tehcviou& o "while loo0
it eample
The tuctuge edess huo c chile loop is
Syntax
while covdition
ostso StAuctue.
Dwhile kewotdi steets loop
DTCondtien -- Cxgßesion that etutns TAue ot Fcalse
iDlOop body Statemeohs that kum Repeatedly
i Mpdate dtatement : CRHtenal bt wyely meed
Behaisu:
The behauiouf descaibes hoe the loop cuotks du&ing
erection.
The conditien checked et
7I} the conditm is TSue, te lo op body exe cute.
Adteg exeC4A bodyte co ncltigm is checkeel again.
Stepskepett untilg the condHlon be tomes FlJe.
when conditign become s False the (oop temimal
e condition meveß become talse ’ it be Come n
imginite \oop.
Page No.
Datn
while i<=s:
en
Pini)
i+ =1 loop Gody
update state ment.