Q102
What will be the output of the following Python code snippet? 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']]
AnswerC.
[['da', 'db', 'dc'], ['ea', 'eb', 'ec'], ['fa', 'fb', 'fc']]
D.
['ad', 'ae', 'af', 'bd', 'be', 'bf', 'cd', 'ce', 'cf']
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board