List Comprehension (2)

Run Settings
LanguagePython
Language Version
Run Command
list_x = [1, 2, 3, 4, 5] list_y = [2, 7, 3, 9, 10] common_nums = [x for x in list_x for y in list_y if x == y ] print(common_nums)
Editor Settings
Theme
Key bindings
Full width
Lines