首页 > 其他分享 >EvenOrOdd

EvenOrOdd

时间:2023-04-25 18:56:20浏览次数:33  
标签:Even even number numbers EvenOrOdd odd

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'

标签:Even,even,number,numbers,EvenOrOdd,odd
From: https://www.cnblogs.com/artwalker/p/17353254.html

相关文章