8 lines
190 B
Mojo
Generated
8 lines
190 B
Mojo
Generated
def is_allowed(sensor_id: Int, allowed: List[Int]) -> Bool:
|
|
return sensor_id not in allowed
|
|
|
|
|
|
def main():
|
|
var allowed: List[Int] = [2, 4, 6]
|
|
print("ok:", is_allowed(4, allowed))
|