You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
While True:
if left_part < right_part:
merge_sort(left_part)
if left_array_index < len(left_part):
pass
else:
merge_sort(right_part)
if right_array_index < len(right_part):
pass
The request says:
Create two conditions for the loop:
I know that’s quite unambiguous but it expects you to understand that it is talking about the condition of the loop and not the content inside the loop block, which is what you have.
In other words:
while condition one and condition two:
pass
Or in this case:
while something < something_else and another_something < another_else :
pass
By the way, Python is case sensitive in its keywords, which means that While would not be the same than while