Assignment 11 – list creation
Due Friday September 20 @ 4:30 PM
Homework program big_production.py
- Performs the following tasks to process a user-specified list of integer values
- Prompt and get as input a list of integer numbers
- Convert the gotten input into a list of numeric strings
- By accumulation, convert the numeric strings one-by-one to get a list of integers (a loop is needed)
- By accumulation, get the product of the integer list values one-by-one (a loop is needed). For building a product, the accumulator is initialized to 1.
- Print the integer list
- Print the product
- Does not print anything else
- Some program runs
Enter a list of integers: 1 2 3 4 5
[1, 2, 3, 4, 5]
120
Enter a list of integers: 3 5 9 13 11 2
[3, 5, 9, 13, 11, 2]
38610
Enter a list of integers: 2 -7 9 88
[2, -7, 9, 88]
-11088
© 2019 Jim Cohoon | Resources from previous semesters are available. |