summaryrefslogtreecommitdiff
path: root/progs/a750.py
blob: ca69d0680e808842cf5c0189d281d58d20a5f67d (plain)
1
2
3
4
5
6
7
8
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")