avatar Bite 77. New places to travel to

You want to find people who have as much exposure to different cultures as yourself.

Complete the uncommon_cities helper that takes the cities you have visited (my_cities) and the cities the other person has visited (other_cities) and returns the number of cities that both sequences do NOT have in common.

So given [A B C] and [B C D] it should return 2 because only A and D are different.

You can loop through both sequences but maybe there is a more concise way to do it?

Login and get coding
go back Beginner level
Bitecoin 2X

506 out of 508 users completed this Bite.
Will you be Pythonista #507 to crack this Bite?
Resolution time: ~21 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 1.87 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help