diff options
Diffstat (limited to 'progs/a316.py')
-rw-r--r-- | progs/a316.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a316.py b/progs/a316.py new file mode 100644 index 0000000..728423f --- /dev/null +++ b/progs/a316.py @@ -0,0 +1,7 @@ +import re
+def text_uppercase_lowercase(text):
+ patterns = '[A-Z]+[a-z]+$'
+ if re.search(patterns, text):
+ return 'Found a match!'
+ else:
+ return ('Not matched!')
\ No newline at end of file |