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.7k points

1 Answer

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

Related questions

1 answer
4 votes
185k views
asked May 20, 2021 53.4k views
Jacob B asked May 20, 2021
by Jacob B
7.4k points
2 answers
3 votes
53.4k views