 again today we have a challenge to solve 1 simple problem. We need to solve this little exercise which says how to make a function with the while loop that runs so long as the maximum value of List1 is greater than the minimum value of List2. В каждата итерация, трябва да изменивате максимум от лист 1 и минимум от лист 2. Ретърния valor за това функцията са много итерации от Y-луп. Добавяме и трябваме да работим с два листа. Добавяме, например, два листа и добавяме да имаме лист 1 с элементы 1, 2, 3, 4, 5, 6, 7, 8, а не има, както е, както си е, как да изменивате функционът с Y-луп. Добавяме за функционът. Това функционът В леки да бъгannerе, например, два аргументи и ненавистите. Няма да държим държим, това държим ще се държим 2 аргументи и тези аргументи ще се държим тези листите. Доверим нашия държим. Няма да държим държим, тези аргументи е и тези аргументи да се държим Държим някакъде. Държим някакой кондицій е добър, и в н Cinema will наисти и ще се държим държим някакъде. Това до нас shocking Mummy Ту. Let's say number of... let's say iteration number equals to zero at the beginning. And let's define while loop. While loop runs so long as the maximum value of list 1 is greater than the minimum value of list 2. So we have maximum value of list 1. So while maximum value of list 1 is what is greater than the minimum value of list 2. Let's use minimum value of list 2 and then we'll iterate our while loop. In each iteration you need to remove the maximum from list 1 and the minimum from list 2. So in each iteration we will remove the maximum from list 1. We'll say list1.remove and let's find maximum element of that list. So we'll say list1.... no, excuse me, we'll say max of list 1. So we will remove the maximum of list 1 from our list and we'll remove, I think, minimum of list 2. The minimum from our list 2. And we need to return the value of that function will be the number of iterations. So in every while loop pass we need to increase our iterations number variable. So we'll say iterations number plus equals to 1 and that's it for our while loop. And outside of our while loop we want to return iterations number. Okay, I think that's it. Okay and let's check to call our function. Let's call our function number of iterations with arguments list1 and list2. And we will get as a result number 2. So we have 2 iterations. Let me check that first we have 1, 2, 3, 4, 5, 6, 7, 8. First list and in second we have 2, 4, 6 and 8. In first pass of our iteration we will remove maximum from list 1. And we will remove minimum from list 2. And in next iteration we want to check is the maximum of list 1. So it's 7 is greater than minimum of list 2 which is 4. That's true because 7 is greater than 4. Okay, in the next pass we will delete maximum of list 1 and minimum of list 2. And now in the next iteration if we want to check if maximum element of list 1 is greater than the minimum element of list 2. But they are equal so we will have just 2 iterations in our while loop. Okay, so that's it for this challenge. See you in some next challenge. Happy coding!