Solve problem "Sum of cubes" online - Learn Python 3 - Snakify

Problem «Sum of cubes» (Easy)


Statement

For the given integer N calculate the following sum: $$ 1^3 + 2^3 + \ldots + N^3 $$

In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
3
36
1
1
2
9
4
100
5
225
6
441
7
784
8
1296
9
2025
20
44100
30
216225