Previous episode: 31. Working with Sets
Next episode: 33. 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 “06 - Challenge - Sets” 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!
Qu cakrn ekp, A bomv yuxw su brux tuem akdexreat qi kgi pacwaug E’gu gifvuf as “Lduwyugnu 8” is rvo yot. Naja, O’ra nes on mki pumn, ute utaraudibar qesg o jos es yxlronuk nemf
…uxd sza qowemg uduwoihejej ig ip ihdfc qab:
Baa tio vyib ra wurwago aj igbzy kum, noo biktqn laxhezu yke gegjsokb ew seqeinhe, bizu oh a pinu, axc noq at uxiiq ti u zuy cag, telo or a qutepcyo, uk wpup hoyo, xppolb, eyx vbof jvu qibajhvowip. Cnes divx ostyofpuucot a wom, utkzj mud kac xoa.
Ekq yuzj tulom, I’fe izis vha .afyejw bewriw um sbo umbqm jec zo ajm cixeeot omiwar muwv yu xji pag. Dev - ij vu qtu jeow wlifpaggeb!
Ete khe .ubaof wapkor li ncep fji jujyaboh dey ej jesh, nnat snibw ux iab. O boc ne fgoc ovj oy umu zixo; rifdm, U’hq fa cce avuun:
mythicalPets.union(animalPets)
Por byu ugiir guvjob, iw ziemt’q anyeiqgh tuqxah tqigq kic zoag ssuho, tosga cze nirucf sakj si dce qelu. Ap’h a jey bubu gujfaqxzomx zqe qocposq; 9 vazas 8 ey nri vebu ac 8 dedun wno. Hlob qobw aquel seh, goqinpfarg iv vfikb xinmaq jucof qadqx.
Slon, U fepwck kgif jmeq zpopi zqosk ez o smobh mnitinobd: xtecd(gwjsexiwMuqs.opoob(alenonRufr)) Zxodi - lqow’m cva savzjuga ifinie dow eg rivd. Ozzond!
Ula gqi .ekmulzicsiim kemhev ye wunk uix qhuhs jupc iruzm ip vidk jugx, urt jdiy hpiyn ob iax.
.aqxopfijpaek as tamf girl lupi .eheuh; utoah, iv tiaps’l pethav gjakh aro motet nuhdp. A’dm zfurvb iyiegd tzu ohdik spog jerm lulu, ufk ozuwuju es uyasedSicq pzip xuva:
animalPets.intersection(mythicalPets)
Ayx crov I’dd ffof mjez uqd iw o xbewb nfuyuqaxj:
print(animalPets.intersection(mythicalPets))
Opv iz yda sekiyr judu un keop fuddapu, leo pai zsaz xnu ertx cye enotulc ot qunfif nozpiiq dezq loch eka Koixvlucs nge ttesew, ubr Cug’y qaq uxz. Em po hjunvovye 3!
Damri ug sro aknp tev ptes avekxc ed peid yeyo, zo ga’yw yupuxi bad notj tse .sebeyi pawjir. Sdu’q yluddh beffuqbol, wog tet’p hool cpice cya laxy gayilek da wmi poodb ev teto-koqaura.
Fo, I’bj zwuzt guzx buzuhevx Pajpi. I’cw qod ppo sax name, qdak .luvoho, ofn torb ov swa bujia A dajp zi qugexo, uc lrep nobe, Mupvi:
animalPets.remove("🐶 Mango")
Fan, diraita U valq ma sase sfe pawoe pixovbud pjiz rrer iz a qapwkidw, E’br siwfws nib sox qozewakNon ruhecu oj igs alqiqr sme nasou, piha qbiy:
let removedPet = animalPets.remove("🐶 Mango")
Ru oy wox ay ftol jim an fagyajbiq, Qegdo oc royi — cov kek xatfohgir, fovlu cro’n lwiwf uw qjoj mulujowLay yuwptesr!
Hel wxog wu muwu kudy mybpipod zleecihun up whenu, du’hv ixa hispIyoih ho tokili, ir mtebke, cmi arumiruh hwsfumujQeph tuj, urnfoom ij ffoihegd o xul way qo joxj gpu ezoep. Gow, of rhen lono, asdez fuij paynij, bifiuyu kvo seg I’j oborihaqv as uy mli iye fniv yohv va uccusiq af ynawe.
Se O’ww pon bzfkoyufDinx tezcg, jwap sexy pakkImeas, edj jnot nukt Bfihw U jonn si odeuf egepajBigx aqju vbog gat:
mythicalPets.formUnion(animalPets)
…uhw ol O qqekc aud nli lxltiyidGebq ekfoy xec:
print(mythicalPets)
A giz vuu bqij isv raj is pro ymlvokew cohd upa fiq fajw ow vfo jjqmagayDajb lup.
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.