a = ['name','phone','email','birth'] ,
b = ['name','phone','birth']
I want to get it returned as True/False if a
value is included in b
as in
operator.
list(map(lambdax,y:x in y,a,b)
I tried to see one by one, but only three b
were shown.
Is there only a way to check a
one by one using for
statement?
Please keep that in mind.
a = ['name','phone','email','birth']
b = ['name','phone','birth']
[i in b for i in a]
[True, True, False, True]
Please keep that in mind
a = ['name','phone','email','birth']
b = ['name','phone','birth']
c = ['aaaa','phone','birth', 'email']
import itertools as it
list(map(lambda t:len(set(t)) == 1, it.zip_longest(a, b, c)))
[False, True, False, False]
564 Who developed the "avformat-59.dll" that comes with FFmpeg?
590 GDB gets version error when attempting to debug with the Presense SDK (IDE)
862 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
563 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.