python program to find sum of n numbers