← Back to Lists
Question 141
Scaled Grades
Scaled Grades
Read a whole-number factor from input() with no prompt. Starting from an empty list called scaled, use a for loop to build a new list that holds each element of grades multiplied by the factor, in order, by concatenating a one-element list onto scaled with + on every pass (no list methods). After the loop print the new list. Input: one integer.
Expected Output:
[148, 176, 182, 130, 158]= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
ListsOperators
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.