a = [x+y for x in ['Python ','C '] for y in ['Language','Programming']]
print(a)
the output is ['Python Language', 'Python Programming', 'C Language', 'C Programming']
(输出为['Python Language', 'Python Programming', 'C Language', 'C Programming']
)
I thought that two list added together should be like ['Python ','C ','Language','Programming']
(我认为将两个列表加在一起应该像['Python ','C ','Language','Programming']
)