diff --git a/python/Chapter 1/Question1_3/ChapQ1.3.py b/python/Chapter 1/Question1_3/ChapQ1.3.py index 1266f349..0301c5aa 100644 --- a/python/Chapter 1/Question1_3/ChapQ1.3.py +++ b/python/Chapter 1/Question1_3/ChapQ1.3.py @@ -6,7 +6,7 @@ def isPermutation(s1, s2): return False else: for char in s1: - if s2.find(char)==-1: + if char not in s2: return False else: s2 = s2.replace(char,"",1)