Page 1 of 1

19. Python programming Write a function definition for function display(num). It accepts the value of num as a parameter

Posted: Mon Jul 11, 2022 9:55 am
by answerhappygod
19.
Python programmingWrite a function definition for function display(num).It accepts the value of num as a parameter.Function should check if num is odd or even.If num is even, function will display the even numbers in the rangeof 1 to num (both inclusive).If num is odd, function will display the odd numbers in the rangeof 1 to num (both inclusive).Rubric:function header - 1 point
function body - 4 pointsFor this question type the code using any text editor, and submitthe file.