Question: answer should be in pythonLanguage: Python 3 Environment Logic, Control Flow - [ Medium ] - Unit 5 . 3 Complete the following function, odd
answer should be in pythonLanguage: Python
Environment
Logic, Control Flow Medium Unit
Complete the following function, oddoreven. The
function takes one argument, num, which is an integer.
If the value of num is odd, the function should print
"odd". If it is even, the function should print "even".
The function need not return anything.
# binpython
#
# Complete the 'oddoreven' function below.
#
# The function accepts INTEGER num as parameter.
#
def oddorevennum :
# Write your code here
if name::
Hint: You can check whether a number is odd or even
by using the o operator.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
