class Solution:

```
# @param {integer[]} nums1
# @param {integer[]} nums2
# @return {float}
def findMedianSortedArrays(self, nums1, nums2):
all = nums1[:]
all.extend(nums2)
all.sort()
if len(all) == 0:
return None
elif len(all) == 1:
return all[0]
if len(all) % 2 == 0:
median = len(all)/2 - 1
return (all[median] + all[median + 1]) / 2.0
else:
median = len(all)/2
return all[median]
```