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.
19. Python programming Write a function definition for function display(num). It accepts the value of num as a parameter
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am