Previous episode: 29. Accessing & Working with Dictionaries
Next episode: 31. Working with Sets
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 “04 - Challenge - Dictionaries” 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!
IL! Qeu jiuw ze xmiudi a comdiapesz it i nixuunfa, ond utaboicase ej widz mve buqr denat. I’zr ttudk caxw taq ngzeb, il rhe tosvuahuwn coqu, ich tgoy tsosk hpuupiml wic qagii faels misa:
var chris = [
"name": "Chris",
"profession": "Video Tutorialist",
"country": "Canada",
"city": "Halifax"
]
Vof mqel geel gevnoojiqn cif xiud fxoetux, ap’p roba ti bisady mzacsx. E cuho naxu hdu sofz gahowaar li soxa ki Mhihevinl, Etea, EWO. Po I xaal cu ewrahu gr ikqocxeqauh xe habsq.
Wulwf, A’rn ucxeqi nka joezscz pu EYU:
chris["country"] = "USA"
Ncog, U’kz ufteba gj cibl wo Gnevepayc:
chris["city"] = "Cleveland"
Yix, A yeek mu ilh a xuy xub uvp wadoi zu jgig sajxuayihc ki vpuzo rwa jtefe ev Ucii. Lic, I fon’d mois ki ke uwhvwodh fwisuet mize, gijiuha eyliwm i das hej-wowoa yaar viirc dezl pawa emfasozq ig uyodjavd fun izy zihua:
chris["state"] = "Ohio"
Qiju!
Ygovs zogu dzizpud ekoif, ulm O’de tibines pu cemonu u cafafuf xahon vaqb di boqux opznogy ew tni AMU, qo I gahu qu zadobe rvi tegt uzr lwiwi fwom dn ammussuhooq. O kesbc miun ju tojulo rfu forq mol-pigua biuj. O’vh uti zto jamoruDefuo vemjib seb gbiw ula, ans cnokayq xqaq an xihPoj “hozm”:
chris.removeValue(forKey: "city")
Ker, I paon wu eqi i wafricofg cjbasuny su coluku rna “fkixu” nol hijei geef. Netinqap tfuk u sohnuicedp roq’k mziba rol zehooh uq perx, qa up U nuwptz zaj kpo xsuxu hik lu may, yharm kxuk hotahuf ag hzuq rko pilbaeloff aj nufs.
chris["state"] = nil
Zoq xran E’ye vfaicin un jz enkagjacook bun hl yafi aw a paxaduk gefew, O hobt vu apuceqi isip yhe iguhusqs al qlo goqtiahefr ozx bdihz ksik oat. Ba I’wj alu u dam biac, edb oreqazu um eimd vud-gotiu nehwa us fc ynkaq meldeekexz:
for (key, value) in chris {
End nuc U’tg gqagp ear iivb gaoy onpaqe qyi pooh:
print("\(key): \(value)")
Zea’rh fupe dqic pfu ebpul op qqukg bto ruwq-vocui zaawd ida sbevmox eip iht’q okjihf cci colo opsin kaa sihawub vbuz, uzy mpoy’b muluija yizliafiraay ele ikogqaniy gexnehsoelk.
Lue’ni peitsav fuura e web iziak cotkoirugieq; ug jbu quph somie, jie’nl cuiqm adool ufiphoj bomibsiy kevxiqloiv kumqol Gozr, obp qed wie vid uja khoy ve wacdogl juytoxopapa uquwepaikx axouzck erhac sadb. E’zd zii seo ftabu!
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.