diff options
Diffstat (limited to 'challenge-240/eric-cheung/python/ch-1.py')
| -rwxr-xr-x | challenge-240/eric-cheung/python/ch-1.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/challenge-240/eric-cheung/python/ch-1.py b/challenge-240/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..0cc518455d --- /dev/null +++ b/challenge-240/eric-cheung/python/ch-1.py @@ -0,0 +1,16 @@ +
+## Example 1
+## arrStrInput = ["Perl", "Python", "Pascal"]
+## strCheck = "ppp"
+
+
+## Example 2
+## arrStrInput = ["Perl", "Raku"]
+## strCheck = "rp"
+
+
+## Example 3
+arrStrInput = ["Oracle", "Awk", "C"]
+strCheck = "oac"
+
+print ("".join([strLoop[0].lower() for strLoop in arrStrInput]) == strCheck)
|
