Получите обратное значение Python Bool Value
return not value #== return !value
Rigolo2015
return not value #== return !value