Write a Python function called sumList () which will receive a list of integers as input
parameter. sumList() must:
a) Print the list
b) Sum all the numbers in a list and print the total.
The main section of your program must:
c) Ask the user how many numbers the list should contain;
d) Create the list accordingly (containing randomly generated integers between 0
and 100);
e) Pass the list to sumList () for processing.
Example output if a list containing four numbers is passed to sumList()
[3, 47, 94, 1].
The total is: 145

That's some request. But that's not how this works. Here you do your own homework and if you are stuck you share what you can, explain a little what you think is wrong and we'll see if we can shed some light on the issue(s).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.