Find the position of a single non-matching character between two strings

No access to computer here, but does it work with a generator instead of an array comprehension? I suspect it requires indexing, though.