Skip to content

Commit

Permalink
mutations (the-vampiire#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsdas authored and the-vampiire committed Oct 8, 2019
1 parent 27e9c5e commit 105eaf5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions python/intermediate/mutation_suryashankardas.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
input_list = []
for i in range(2):
input_list.append(input("enter word: "))

def mutation(a):
count = 0
for ch in a[1]:
if ch not in a[0]:
count = 1
if count == 0:
return True
else:
return False

print(mutation(input_list))

0 comments on commit 105eaf5

Please sign in to comment.