diff options
| author | Dave Jacoby <jacoby.david@gmail.com> | 2022-11-14 09:29:47 -0500 |
|---|---|---|
| committer | Dave Jacoby <jacoby.david@gmail.com> | 2022-11-14 09:29:47 -0500 |
| commit | b43c7c0901bac835315fe78c39db7528e9a9a58d (patch) | |
| tree | dbe607f12c2ea0a4413a552332c40111b2fbbc80 /challenge-190/eric-cheung/python/ch-1.py | |
| parent | 2e12c850a19098123c635ccacfa30b69f6ba66dc (diff) | |
| parent | 377a415bb53d1ed0b16b70d190bb444241216036 (diff) | |
| download | perlweeklychallenge-club-b43c7c0901bac835315fe78c39db7528e9a9a58d.tar.gz perlweeklychallenge-club-b43c7c0901bac835315fe78c39db7528e9a9a58d.tar.bz2 perlweeklychallenge-club-b43c7c0901bac835315fe78c39db7528e9a9a58d.zip | |
Merge branch 'master' of https://github.com/manwar/perlweeklychallenge-club
Diffstat (limited to 'challenge-190/eric-cheung/python/ch-1.py')
| -rwxr-xr-x | challenge-190/eric-cheung/python/ch-1.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/challenge-190/eric-cheung/python/ch-1.py b/challenge-190/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..0f32352a2d --- /dev/null +++ b/challenge-190/eric-cheung/python/ch-1.py @@ -0,0 +1,15 @@ +
+def IsApproCapital (strFuncInput):
+
+ if strFuncInput.islower() or strFuncInput.isupper() or strFuncInput[0].isupper() and strFuncInput[1:].islower():
+ return True
+
+ return False
+
+
+## strInput = "Perl" ## Example 1
+## strInput = "TPF" ## Example 2
+## strInput = "PyThon" ## Example 3
+strInput = "raku" ## Example 4
+
+print ("1" if IsApproCapital(strInput) else "0")
|
