- 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 49 times
Sorting Pairs Create the function sort_pair, which takes 2 integers as arguments. The function returns the pair of value
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Sorting Pairs Create the function sort_pair, which takes 2 integers as arguments. The function returns the pair of value
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