1
>>> j([1,3,4])
0
+
+ >>> k(1)
+ 1
+ >>> k(5)
+ 0
+
+ >>> m(2)
+ 1
+ >>> m(5)
+ 0
+
+ >>> n('d *')
+ 1
+ >>> n('xxx')
+ 0
"""
def f(a,b):
def k(a):
cdef int result = a in [1,2,3,4]
return result
+
+def m(int a):
+ cdef int result = a in [1,2,3,4]
+ return result
+
+def n(a):
+ cdef int result = a.lower() in ['a *','b *','c *','d *']
+ return result
0
>>> j([1,3,4])
1
+
+ >>> k(1)
+ 0
+ >>> k(5)
+ 1
+
+ >>> m(2)
+ 0
+ >>> m(5)
+ 1
+
+ >>> n('d *')
+ 0
+ >>> n('xxx')
+ 1
"""
def f(a,b):
cdef int result
result = 2 not in b
return result
+
+def k(a):
+ cdef int result = a not in [1,2,3,4]
+ return result
+
+def m(int a):
+ cdef int result = a not in [1,2,3,4]
+ return result
+
+def n(a):
+ cdef int result = a.lower() not in ['a *','b *','c *','d *']
+ return result