filmov
tv
Learn Python by Example - Python challenge 1

Показать описание
Challenge:
How to make a function with a while loop that runs so long as the maximum value of list1 is greater than the minimum value of list2.
In each iteration you need to remove the maximum from list1 and the minimum from list2.
Returning value of that function will be number of iterations of while loop.
How to make a function with a while loop that runs so long as the maximum value of list1 is greater than the minimum value of list2.
In each iteration you need to remove the maximum from list1 and the minimum from list2.
Returning value of that function will be number of iterations of while loop.