What will be the output of the following Python code snippet?
print([i+j for i in "abc" for j in "def"])
print([i+j for i in "abc" for j in "def"])
A. ['da', 'ea', 'fa', 'db', 'eb', 'fb', 'dc', 'ec', 'fc']
B. [['ad', 'bd', 'cd'], ['ae', 'be', 'ce'], ['af', 'bf', 'cf']]
C. [['da', 'db', 'dc'], ['ea', 'eb', 'ec'], ['fa', 'fb', 'fc']]
D. ['ad', 'ae', 'af', 'bd', 'be', 'bf', 'cd', 'ce', 'cf']
Answer: Option D
Join The Discussion