Update list-1.py

more compact version of the sum2(nums) method
Merge pull request #2 from Shibly/master

Update list-1.py