Split a string into two in solidity

Question:

I have a list of words like below

["HEllO","HI","GREAT"]

and another list of tuples

[("HELLO",123),("HI",2134),("HELLO",65)]

If all the words in first list comes in second list atleast once then I need True as outcome else False.

Asked By: imhans4305

||

Answers:

Python version (based on comments from
Pranav Hosangadi and matszwecja)

a = ["HEllO","HI","GREAT"]

b = [("HELLO",123),("HI",2134),("HELLO",65)]

not (set(a) - set(x[0] for x in b))
Answered By: Nikolay Zakirov
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.