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
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