Created
August 15, 2019 01:50
-
-
Save anthonygharvey/a453c635290224205aa22baee19c71e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list_1 = ['a', 'b', 'c'] | |
list_2 = ['c', 'd', 'e'] | |
common_elements = list_1 & list_2 | |
common_elements #=> ["c"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment