This seems to mean the following:
("a" in "bar") and ("bar" in "foo") - or False
The following might help:
"a" in "bar" in "foo" => False
"a" in "bar" in "foobar" => True
"b" in "bar" in "foobar" => True
"c" in "bar" in "foobar" => False
I thought at first that it might have been "a" in ("bar" in "foo"), but that obviously would return the following:
TypeError: argument of type 'bool' is not iterable
Because ("bar" in "foo") returns False
Edit Fixed obvious typos