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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply