```
nums1[len(nums1):]=nums2
tlist =sorted(nums1)
print(tlist)
tlen = len(tlist)
result = 0
if tlen % 2 == 0:
result = (tlist[(int)(tlen / 2) - 1] + tlist[(int)(tlen / 2)]) / 2
else:
result = tlist[(int)(tlen / 2)]
return result
```

I get the answer 2.5 on my machine, but when I run the code in the website, it got the answer 2?