No Forbidden Values

Sometimes you need to check that a list does not contain forbidden values before processing it. Write a function no_13 that takes a list nums and checks that it contains neither 1 nor 3. Return True if both numbers are absent, otherwise return False.

Примеры

Ввод
[1, 2, 3, 4]
Вывод
False
Ввод
[2, 4, 5]
Вывод
True
Ввод
[3, 1]
Вывод
False

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

def no_13(nums: list[int]) -> bool:

Теги

listsarray
PostgreSQLv16

Taispeánfar toradh do chóid anseo

Visible tests
1
Input
[1,2,3,4]
ExpectedFalse
2
Input
[2,4,5]
ExpectedTrue
3
Input
[3,1]
ExpectedFalse
4
Input
[]
ExpectedTrue
5
Input
[2,2,2]
ExpectedTrue
6
Input
[4,3,2,1]
ExpectedFalse
Focus radio
Paused · SomaFM · Fluid