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