De opdracht laden…
Sometimes a problem depends not on one value, but on whether two states match. Write a function monkey_trouble that takes two boolean flags: whether the first monkey is smiling a_smile and whether the second monkey is smiling b_smile. Return True if both monkeys are smiling or both are not smiling. If their moods are different, return False.
True, TrueTrueFalse, FalseTrueTrue, FalseFalsedef monkey_trouble(a_smile: bool, b_smile: bool) -> bool:
Log in om je inzendingsgeschiedenis te zien
InloggenLog in om de AI-mentor te gebruiken
InloggenTrue, TrueTrueFalse, FalseTrueTrue, FalseFalseFalse, TrueFalse