From 105eaf5b31c4b2c8aa51897b47774cbfa2a96e40 Mon Sep 17 00:00:00 2001 From: Suryashankar Das Date: Tue, 8 Oct 2019 20:43:39 +0530 Subject: [PATCH] mutations (#126) --- python/intermediate/mutation_suryashankardas.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 python/intermediate/mutation_suryashankardas.py diff --git a/python/intermediate/mutation_suryashankardas.py b/python/intermediate/mutation_suryashankardas.py new file mode 100644 index 0000000..b5780b6 --- /dev/null +++ b/python/intermediate/mutation_suryashankardas.py @@ -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)) \ No newline at end of file