Loading...
Engaged employer
how to write even or odd program without if else statement.
Anonymous
I have failed here.
Using array we can write
def isEven(num): return num%2?"Even":"Odd"
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.
Get actionable career advice tailored to you by joining more bowls.
Check out your Company Bowl for anonymous work chats.