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 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
Get step-by-step solutions from verified subject matter experts
