Harry Potter

Report a typo

Harry Potter needs our help to identify which traits characterize each house.

Read a string that represents a house and output the following:

  • if it is gryffindor, output bravery;

  • if it is hufflepuff, output loyalty;

  • if it is slytherin, output cunning;

  • if it is ravenclaw, output intellect;

  • if otherwise, output not a valid house.

Sample Input 1:

gryffindor

Sample Output 1:

bravery
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic