Same Monkey Mood

This check helps you practice comparing two boolean values with each other. 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 in the same state: both smiling or both not smiling. If their states are different, there is no trouble, so return False.

Примеры

Ввод
True, True
Вывод
True
Ввод
False, False
Вывод
True
Ввод
True, False
Вывод
False

Нужно реализовать

def monkey_trouble(a_smile: bool, b_smile: bool) -> bool:

Теги

math
PostgreSQLv16

Qui apparirà il risultato dell'esecuzione del codice

Visible tests
1
Input
True, True
ExpectedTrue
2
Input
False, False
ExpectedTrue
3
Input
True, False
ExpectedFalse
4
Input
False, True
ExpectedFalse
Focus radio
Paused · SomaFM · Fluid