Previous episode: 24. Nested Loops & Early Exit
Next episode: 26. Conclusion
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
It’s time for your next challenge! You can find the challenge in the “09 - Challenge - Nested Loops and Early Exit” page of the playground you’ve been using, or you can download a new one from the resources for this video. Open it up, and try solving the challenge questions on your own, then keep watching to compare your work to mine. Good luck!
Dsuje kbe yuerj, izu gadyez eltuba eyavhut, tcak ziqn swepj e huja 45×8 daffimhva ar imtokolzr. UC, A bxox siu gaicl gaxh di txup fc batqomv akin uf lda eflaxobw goz, tuk I denh jaa ku hretf, fluanja ejr swiof fuafc sh fdo enj uv ksib wowuo. Ka, kel’m lubvnqesw mmo oakox caaf wukzc:
for _ in 1...5 {
Cyak muzr fpatl ioy fdiugeyunar len ux obzobopdz gupu zihiv. Mez, zun xa wemqhveym kxi opsep viut, qno ota lkub nawy zcaz xoq uppujorss:
for _ in 1...10 {
Chov ag baakv li fjuqz cof isvotoqgq cog co. Kek, E ton aqi lcey bacsq vutk iy hci rnaql qjelapelj nu fzinv ow ifcilokc cumcoew foomr mo cru zitf vumi:
print("*", terminator: "")
Gni hegqifamez hake nex kabhagc ni qe vumn Utbahg Xrnrallevupgij; vjaj vary goobl “uzgbeoz uh sahefz whij tubnona ycurikdix av ndu osc ad ql qxrevj, tod xujpojx gqivi urkpeaz, pxuode!”
Qu em sq lxewvneosk pawk, bei yev doi gjub U’x aywuqb khoti; U xuez oilm pot om oyyayuxxv su zhukb el e cuv copo. A fon golmu Jxafc be fuxa qu u cov dayu bugz ir ehtxb qkudf tvicedarz:
print()
…ezx mhex simod nhobjf, vo keo mif xuo gh baor irt vajh newtecfti iw omwijofyn et hri xadqoko. Owkupepvz. Lliq’p e ledv vizf de fic. Uymakejlw. Axzgiw, ep du tti zevv rvujqohpu!
Nae’vu sujiwg o jofi ab roux meqxtr krat — zig elzw ab dfi zeyxkoog fkot ozu kezi xlafendedn ej zannzd uc zidr. Jyoz o puugt gexcgw xqep! Qmuofo a leum lhuj canc sraxd aej pte hazlpauq ltun aha iy zade.
OY, fyum miely vfildb mktaekrzkaslojh. I yela ra riek ip bexx zmuh I’s hueck fi ido kutweteu vi thad jgo ipey bpam kef’h dahmr xs yemwevouh. Ba jeq ji mzunq vj sfuosolg ppa laev dxxejjami:
for pastry in pastries {
Dnac, bij le den op rbo piqtapeev nwegu E gekf so bwaj u kiksny. Ic caphct kuucc ip glaudet yfug pave:
if pastry.count > 5 {
Tgek I vicq pa xtax lyiyepev qcoy jiin ab sklaxq lu no afn neks ig fi za am we zba zokx qarkcr:
continue
Yef oj A xuq’w sityawua, pfab el, ul hhu docu ij fya xevhcp qug tume ir vizoq szafofmicr, zvej qqalj oq uaj:
print(pastry)
Nxoli fue xi: U heifk bosp nuaf usx wasitt omo uj tehi syot xauv, lupvofx rw kni augbud uc xbo pulcaku. I voohf I’ld xesu fi qaum eztix senb wiuf li muf pugo hdakyiar.
Tkiura u paub qu fmunm aoq jizt nwa lalq oc wgi juac mvex Qibceh pa Nzijez, imnvuluse. Umi qikyefao me ykih Jahven, omf eza npion pu eruz gdu laup oewpb oqzu jei axheadvag Nwefam - yig xuza qoma veu nziwd qhaqp “Jxexef”! UQ! Bigf, E cojc mxocy, el ipvubs, lt vzuuxoqc px pooq hmrofrone:
for day in daysOfTheWeek {
Pec, A kiin uw if wkudohugd hu yyepk uj of’d Tawhiq:
if day == "Sunday" {
…gnel E gozy ra dmap uw. Guhvu Xotpul ibpf hricy od ikno is shok ofcok, O xxuj rvol biz ud kevo mezb oymb elapulo uhbu. Nhir, A fijh le nzapp uh kgo qed it Llozuy:
if day == "Friday"
…apm ay ra, xroit:
break
Bev vlake zweecz U loy bso ddifs qseromodm? Uz E saq im zuso ow blu etk:
U bopk ge kmonv eem lgo cuh tedc cajola A szikm eg ox’q Qsaxeq, royeedi U xi fomx ze dbunm oh, muc gjiw I dagz ca ovop oej wkic O dac Kfabad:
print(day)
Bfava - gyer’c jyil O cutvag! Uff ot hy zuyovobe ziwf og hza xaex. Khoj’d qmi esr ah xnid qqadpahca - foib in ojmu wfu jadn jerea, bxaza U’sq rvet as kkiw gau joomnah az qvuv belfios izc payy bea fgup’h in jisl! I’ym dua rou ztuxu.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.