summaryrefslogtreecommitdiff
path: root/progs/unparsable_programs/a759.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/unparsable_programs/a759.py')
-rw-r--r--progs/unparsable_programs/a759.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/unparsable_programs/a759.py b/progs/unparsable_programs/a759.py
new file mode 100644
index 0000000..25684b9
--- /dev/null
+++ b/progs/unparsable_programs/a759.py
@@ -0,0 +1,7 @@
+import re
+regex = r'^[a-z]$|^([a-z]).*\1$'
+def check_char(string):
+ if(re.search(regex, string)):
+ return "Valid"
+ else:
+ return "Invalid" \ No newline at end of file