0
Context
At Hogwarts School of Witchcraft and Wizardry, students are sorted into 4 houses, 0 - Gryffindor, 1 - Ravenclaw, 2 - Slytherin and 3 - Hufflepuff. This sorting is done by a magical hat, called the Sorting Hat.
Task
Your task is to code a sorting hat. In other words, you should create s...