Merge Sort - RunTime Error

I am getting a run time error in all the test cases on submitting my code.
Here is my code-

Hey @LPLC0059, your code looks great. Just a small mistake is there :
Replace b=x.split(' ') with this line :

b=x.split()

And your code would run correctly :+1:

I hope this clears your doubt :slight_smile:
Happy coding :slight_smile:

Code is working fine now, thank you. Is there any shorter way to take input from the user?

Yes there is a shorter way. Something like this :

n = int(input())
l = [int(i) for i in input().split()]

I hope this helps !
Happy coding :slight_smile:

In this way you don’t need to use more than 1 list and can easily take desired input from the user :slight_smile: