What does this print? from itertools import product; g = ["AI", "Ai", "aI", "ai"]; print(sum("A" in a[0] + b[0] and "I" in a[1] + b[1] for a, b in product(g, g)))
from itertools import product; g = ["AI", "Ai", "aI", "ai"]; print(sum("A" in a[0] + b[0] and "I" in a[1] + b[1] for a, b in product(g, g)))
Log in to join the discussion.
Loading…