Exercise 4 · Chapter: SetsRequired+50 XP
Common Friends
You have two sets of friends:
alice_friends = {"Bob", "Charlie", "David", "Eve"}
bob_friends = {"Charlie", "Eve", "Frank", "Grace"}Find the friends they have in common and print them sorted alphabetically, one per line.
Expected output
Charlie Eve
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.