diff options
Diffstat (limited to 'challenge-225/eric-cheung/python/ch-1.py')
| -rwxr-xr-x | challenge-225/eric-cheung/python/ch-1.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/challenge-225/eric-cheung/python/ch-1.py b/challenge-225/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..f0095f08e1 --- /dev/null +++ b/challenge-225/eric-cheung/python/ch-1.py @@ -0,0 +1,8 @@ +
+## arrWordList = ["Perl and Raku belong to the same family.", "I love Perl.", "The Perl and Raku Conference."] ## Example 1
+arrWordList = ["The Weekly Challenge.", "Python is the most popular guest language.", "Team PWC has over 300 members."] ## Example 2
+
+arrWordLen = [len(wordLoop.split()) for wordLoop in arrWordList]
+nMaxWordLen = max(arrWordLen)
+
+print (nMaxWordLen)
|
