Loading

EvenOrOdd

Instructions
Create a function that takes an integer as an argument and returns "Even" for even numbers or "Odd" for odd numbers.
Solution

def even_or_odd(number):
	return 'Odd' if number % 2 else 'Even'
posted @ 2023-04-25 18:45  Artwalker  阅读(11)  评论(0编辑  收藏  举报
Live2D