Question: Q4. A) Write a python function that accepts a variable n and returns numbers from 1 to n. However, if a number is divisible by

 Q4. A) Write a python function that accepts a variable n

Q4. A) Write a python function that accepts a variable n and returns numbers from 1 to n. However, if a number is divisible by 3, the function should return 'Computer' instead of the number. If a number is divisible by 5, *Programming should be returned instead. And if the number is divisible by both 3 and 5, *Computer Programming' should be returned. B) Define a function called function called 'wage' that calculates your daily wage

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!