Kumaran Systems interview question

how to write even or odd program without if else statement.

Interview Answers

Anonymous

10 Oct 2018

I have failed here.

Anonymous

30 May 2021

def isEven(num): return num%2?"Even":"Odd"

Anonymous

12 Oct 2018

Using array we can write

1