- Multiple Parameters 1 Write A Function Print Sqare Which Takes 2 Integers X And Y As Parameters Prints The Sum O 1 (45.1 KiB) Viewed 52 times
Multiple parameters 1. Write a function print_sqare() which • takes 2 integers, x and y as parameters • prints the sum o
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Multiple parameters 1. Write a function print_sqare() which • takes 2 integers, x and y as parameters • prints the sum o
Multiple parameters 1. Write a function print_sqare() which • takes 2 integers, x and y as parameters • prints the sum of the squares of the 2 integers def print_square(x, y): - # complete the body of this function print_square(3, 4) a, b = 7, 9 print_square(a, b) # output >9 + 16 = 25 49 + 81 - 130 2. Write a function print_less() which • takes an integer, x and a list on integers, a list as parameters .prints all numbers in the list a list that are less than x def print_less(x, a_list): # complete the body of this function print_less (50, [50, 51, 99, 79, 47, 83, 90, 39, 90, 25]) a, list_1 = 55, list(range (30, 100, 15)) print_less(a, list_1) # output 47 39 25 > 30 45