summaryrefslogtreecommitdiff
path: root/progs/a750.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a750.py')
-rw-r--r--progs/a750.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/a750.py b/progs/a750.py
new file mode 100644
index 0000000..ca69d06
--- /dev/null
+++ b/progs/a750.py
@@ -0,0 +1,9 @@
+def even_or_odd(N):
+ l = len(N)
+ if (N[l-1] =='0'or N[l-1] =='2'or
+ N[l-1] =='4'or N[l-1] =='6'or
+ N[l-1] =='8'or N[l-1] =='A'or
+ N[l-1] =='C'or N[l-1] =='E'):
+ return ("Even")
+ else:
+ return ("Odd") \ No newline at end of file