Return Odd > Even

Published by 11level360 in

Given a list, return True if there are more odd numbers than even numbers, otherwise return False.

Examples

oddeven([1, 2, 3, 4, 5, 6, 7, 8, 9]) ➞ True

oddeven([1]) ➞ True

oddeven([13452394823795273847528572346]) ➞ False

Notes

All lists will have at least 1 item.

Watch a quick demo on how Edabit works.