Practice #2
Lesson 10 of 11 in Coddy's Sets in Python course.
Challenge
EasyWrite a function common_elements that takes two arrays as input and returns a list containing elements that are present in both arrays, ordered in ascending order.
Use sets for that!
Try it yourself
def common_elements(arr1, arr2):
# Write code here