Beginner question! The else condition run even though the for statement is True and prints out the text message that declares that it hasn't found the key. Since the statement is True it also gives me the information I want, problem is that it runs else even though for is True.
input_namn = input("Ange ett namn: ")
for key in rooms_with:
if input_namn in rooms_with[key]:
print (input_namn + "\ndelar rum med \n" + key)
else:
print ("\nPersonen du angav är inte en del av föreningen\n")
What have I done wrong?