class Solution(object):
def findMedianSortedArrays(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: float
"""
m = len(nums1)
n = len(nums2)
num3 = []
mid = 0
for i in range(m):
"""num3[i] = nums1[i]"""
num3.append(nums1[i])
for j in range(n):
num3.append(nums2[j])
num3.sort()
t = m+n
print(num3)
print(t)
d = t/2
if t%2 == 0:
mid = (float(num3[d-1])+float(num3[d]))/2
else:
mid = int(num3[d])
return mid