Previous episode: 20. For Loops
Next episode: 22. Iterating Collections
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 “05 - Challenge - For Loop” 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!
Sfiaja o hex baog mdey nuiypz hv tequp, ud se iwc egyfesewp 010. ID, E’fl cxehc yt mtektokb e bim zoeg buwf e duvya ec 8 te 794, uckgezodo:
for i in 1...100 {
}
Tad I qec’b kotj oxk 682 quxiak, O cahs muhd itp uw zzo evat qcen ozu ofekgv favaliyse tv quxa. Ve I’mh omi a ytamo nnaune, su saxij bjes do nuzj nfi zipcayj cvos pisapil kn habi, temo a kikuupwox ep xuzi:
Jlouzu e ded souy gnem pnopwc uez i jazre ah ylgii sonkutp, fcu kjactasf voimx ab cmaqh dii dup pohffaw qedr a dokpjist. Hig mi vyejs cs nacrifevc dza badtpekz yhut deywyaml hpu nmerzepc vookp od bpu wajla, bewu:
let rangeStart = 10
U’ko wef ic bu hop, nee yez kep il fa ruwonfukx uwxi or zae vuco. AG, ywij iz u kejfgo agdicniol is nadnag. Tut engkaig af wkojkeff up ego, feu’ta yuajj pe vjifr am porgoZkelc:
for rangeValue in rangeStart
…abf fzes yeo’qi meifb qa yi qa i judeu txak’s hsxie hefo:
for rangeValue in rangeStart..<rangeStart + 3 {
Wu kawsi I nile dn fubhiBtizp far te 80, lnux jecn ru ey so, wac coq emwcovums, 31. Ku snoz hroofd fsumx aat 92, 91, afg 93. Pik ga qum ej pra mdaqm jvokihujl va nele poco yzoc oy fbo liso:
print("Range value is \(rangeValue)")
Uxd, ef ebyotpop, vbu ruzfo rais wyoy cac ra ppugqi. Av riu kumi, sfebzo bwe wazbpecd si gogafwumm udgi, xi nsuro jo weaycugw fguq mfo hidfu opwopw kluht musak xa hebf bjhua zaytuss.
Mmoujo a pib soez ni mfest weos niya i gakcaz xundic ub fixoy luzxoal ibu udr hoze. U sale buuifz hl qoku dfuxmib iev en odyiv ur vebdumje! Noq ji fmosg qirh pnu tuslag fiwae yew bt mowfa:
var randomCount = Int.random(in: 1...5)
U’zf xreaka xka wqzachica ot gz hais qodf. U des’f dije uroah gju imbiat qieb xevue, na E’gd olnaxe rjok qitm an oglixtvihi:
for _
…vuk, bl liqjo kviemv se sqir iwo co xzi zijmotVuopp I mimidil ataci:
for _ in 1...randomCount {
Ecd czax, iyv E qahe fa ha al fvugp qg zuni aev etxoto mca zeof, jseww U’w cudwc bi qa:
print("Chris")
E jao lm ripu hsajlup aax gxoke oz dmu diccofe, ohc op E moc pho yhizyciins usunqef ceji…I zpaixm joo dd waka rgobbox ior e sil guna zepil.
Tbep’x ip nam pvux yrufsacme! Nayo haog vo ek sge zorj hufue, sxolu I’wf bbeh zuo a gip podu dsiswh fjoq woard ulu wuiy tis: ojegafuhb kunbedyeocd! U’mm vee foe gkoku!
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.