summaryrefslogtreecommitdiff
path: root/progs/a497.py
blob: c268e81ea53e9c1e0b7f1ff3394192d183b01bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
def check_last (arr,n,p): 
    _sum = 0
    for i in range(n): 
        _sum = _sum + arr[i] 
    if p == 1: 
        if _sum % 2 == 0: 
            return "ODD"
        else: 
            return "EVEN"
    return "EVEN"