Codington
0 of 6 problems solved • 0%

Exercise prompt

Predict the Shared Guests

A guest signs in twice. Work out who belongs to both the invited group and the group that arrived.

Predict the output

How many distinct invited guests have arrived?

invited = {"Mia", "Sam", "Jo"} arrived = set(["Sam", "Sam", "Jo", "Leo"]) print(len(invited & arrived))
What will this code print?