-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path9.py
More file actions
15 lines (12 loc) · 691 Bytes
/
9.py
File metadata and controls
15 lines (12 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Return true if the string in the first element of the array contains
# all of the letters of the string in the second element of the array.
# For example, ["hello", "Hello"], should return true because all of the letters
# in the second string are present in the first, ignoring case.
# The arguments ["hello", "hey"] should return false because the string "hello"
# does not contain a "y". Lastly, ["Alien", "line"], should return true because
# all of the letters in "line" are present in "Alien".
def mutation(array):
return
print(mutation(["Alien", "line"])) # returns True
print(mutation(["Alien", "Flint"])) # returns False
print(mutation(["Alien", "lIne"])) # returns True