"Sum of cubes: For the given integer N calculate the following sum: 1^3+2^3+…+N^3" - Snakify python coding question on February 22, 2022 Get link Facebook X Pinterest Email Other Apps CODING QUESTIONFor the given integer N calculate the following sum: 1^3+2^3+…+N^3 13+23+…+N3 SOLUTION r=int(input())sum=0for i in range(1,r+1): sum+=i**3print(sum) Input : 3Output : 36