4.5. For: Sum of cubes
pole55 (237)

For the given integer N calculate the following sum: 1³ + 2³ + ... + N³

You are viewing a single comment. View All
PYer (3460)

Cool! Just saying, I would make line one like this:
n = int(input('N: '))
That way they know to type.