A bunch of wizards

Report a typo

You are given several sets with names of students in different classes. Output the set containing names of all the students.

NB! You don't need to read the input; the variables containing the input data are already created for you.

Sample Input 1:

Potter Weasley
Lovegood Corner
Malfoy Goyle
Bones Macmillan

Sample Output 1:

{'Potter', 'Weasley', 'Lovegood', 'Corner', 'Malfoy', 'Goyle', 'Bones', 'Macmillan'}
Write a program in Python 3
gryffindor = set(input().split())
ravenclaw = set(input().split())
slytherin = set(input().split())
hufflepuff = set(input().split())
___

Create a free account to access the full topic