180k views
0 votes
Write definitions for the following two functions using Python:

sumN (and) returns the sum of the first n natural numbers.
sumN Cubes (and) returns the sum of the cubes of the first n natural numbers.
Then use these functions in a program that prompts a user to enter a number ā€˜n’ and print out the sum of the first n natural numbers, and the sum of the cubes of the first n natural numbers.

User Swerly
by
8.6k points

1 Answer

5 votes
I got to think about this again. Come back later! X=22.78
User Sprinter
by
8.4k points