Question: PYTHON PROBLEM 1 (a) Write a function called leg(a, c) that takes two integers as arguments. The integers represent the length of a leg and

PYTHON PROBLEM

1 (a) Write a function called leg(a, c) that takes two integers as arguments. The integers represent the length of a leg and the hypotenuse of a right triangle. The function should return the length of the other leg. For example, leg(5, 13) should return 12

(b)Write a function called multiples(n) that takes a positive integer as an argument and prints out the positive integers less than n that are multiples of 3 but not of 5. For example, multiples(20) should print, 3 6 9 12 18

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!