[phpBB Debug] PHP Warning: in file [ROOT]/ext/lmdi/autolinks/event/listener.php on line 237: Undefined array key 12
[phpBB Debug] PHP Warning: in file [ROOT]/ext/lmdi/autolinks/event/listener.php on line 237: Trying to access array offset on value of type null
Answer Happy • Sorting Pairs Create the function sort_pair, which takes 2 integers as arguments. The function returns the pair of value
Page 1 of 1

Sorting Pairs Create the function sort_pair, which takes 2 integers as arguments. The function returns the pair of value

Posted: Sat Feb 19, 2022 3:21 pm
by answerhappygod
Sorting Pairs Create The Function Sort Pair Which Takes 2 Integers As Arguments The Function Returns The Pair Of Value 1
Sorting Pairs Create The Function Sort Pair Which Takes 2 Integers As Arguments The Function Returns The Pair Of Value 1 (30.51 KiB) Viewed 51 times
Sorting Pairs Create the function sort_pair, which takes 2 integers as arguments. The function returns the pair of values in ascending order. Notes . This function returns something and does not print. • This function must be used in the next lask • Use return nuni, num2 to return a tuple of values. : def sort_pair(numa: int, nun: int) -> Tuple[int, int]: Return the values numi, num2 as tuple in sorted order. w// BEGIN TODO [sort_pair) Sorting pairs (3 points) #// END_TODO [sort_pair) print(sort_pair(1, 2)) a, b = 3,2 a, b - sort pair(a, b) a, b