Talents

Report a typo

Imagine you have two lists of names: people from the first list play the violin, while people from the second one happen to speak German.

Print a set with names of those who can do both.

Sample Input 1:

Vanessa-Mae, David Garrett
Rosamond Mayhan, Malik Kopf, David Garrett, Cortez Mestas, Barbara Miller, Elease Knudson

Sample Output 1:

{'David Garrett'}
Write a program in Python 3
# work with these variables
violinists = set(input().split(', '))
german_speakers = set(input().split(', '))
___

Create a free account to access the full topic