diff options
Diffstat (limited to 'progs/a259.py')
-rw-r--r-- | progs/a259.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a259.py b/progs/a259.py new file mode 100644 index 0000000..1f54c7a --- /dev/null +++ b/progs/a259.py @@ -0,0 +1,7 @@ +import re
+regex = '[a-zA-z0-9]$'
+def check_alphanumeric(string):
+ if(re.search(regex, string)):
+ return ("Accept")
+ else:
+ return ("Discard")
\ No newline at end of file |