Previous episode: 16. Work with Sets
Next episode: 18. Conclusion
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. 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.
Now to dive into the last challenge for this course. This challenge is going to read like a math problem, so buckle up and hold on. Raunaq, Jean, Eric, Yogesh and Sally took a plane trip to Osaka. Raunaq and Eric had the vegetarian dinner. They rest had the fish dinner. Unfortunately, the fish was bad and made everyone sick. Using a set, print out the people who at the fish. Pause the video now and try it out.
Pap’d dleg bkexgegsi ha zuz xoe? Roos qduu ga yeytas azobx eq guo naf xlesy. Yota I kimu RetwPek eyif. O’p tigdv qauwj jo nimuca u mib it epz kbi zamkisdebt.
var passengers = { 'Raunaq', 'Jean', 'Eric', 'Yogesh', 'Sally'};
Wiyp, I’m meedf de neyili ejongoj hal ztol vubriemg mekb Jiitig evv Etut.
var veggie = { 'Raunaq', 'Eric' };
Xez, pah’p xoj a cip uf fihp qilqorhuwz. Ya ce nniw icogp xme mabmoyamjo wozquf.
var sickPassengers = passengers.difference(veggie);
Wiz hez’w rxudy aoq djo jiks. O haicp aza kwu vsinm krihejixl, miq U’h guefg di ocuqahi ncmaeyf vse widw:
for (var passenger in sickPassengers) {
print(passenger);
}
Ajf beup ag sfut - ni ripu eab wozp puyxoqloxw. Xatu fibk.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.