diff options
Diffstat (limited to 'challenge-224/eric-cheung/python/ch-1.py')
| -rwxr-xr-x | challenge-224/eric-cheung/python/ch-1.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/challenge-224/eric-cheung/python/ch-1.py b/challenge-224/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..d094896b54 --- /dev/null +++ b/challenge-224/eric-cheung/python/ch-1.py @@ -0,0 +1,17 @@ +
+## Example 1
+## strSource = "abc"
+## strTarget = "xyz"
+
+## Example 2
+## strSource = "scriptinglanguage"
+## strTarget = "perl"
+
+## Example 3
+strSource = "aabbcc"
+strTarget = "abc"
+
+arrSrcSplit = [charLoop for charLoop in strSource]
+arrTargetSplit = [charLoop for charLoop in strTarget]
+
+print (set(arrTargetSplit).issubset(set(arrSrcSplit)))
|
