I am confused with Assignment Expressions (https://peps.python.org/pep-0572/). According to this question (How to find what matched in any() with Python?) I can use Assignment Expressions to find what was matched by any().
Simple example:
look = "abc"
mylist = ["abcde15", "nonono"]
if any((match := look) in s for s in mylist):
print(f"I found {look} v {mylist}")
# I found abc v ['abcde15', 'nonono']
But how can I get abcde15
which is what I found in mylist? Thanks