#Problem 1 accu = 0 for i in range(1, 11): accu += i**3/(i*(i+2)) print("The first sum is ", accu, ".") #Problem 2 accu = 0 i = 1 while i<=10: accu += i**3/(i*(i+2)) i+=1 print("The second sum is ", accu, ".") #Problem 3 accu = 0 i = 1 while accu <= 10000: accu += i*i i+=1 print("The value of n is", i-1, "and the sum of squares up to", i-1, "is", accu)