← Back to Printing
Question 68
Prices In Brackets
Prices In Brackets
Print one line of output consisting of the label Prices: then a space then the declared list, by passing the label and the list to one print call. The list prints as Python shows it, in square brackets with each float keeping its decimal point, so a whole-number float still ends in point zero. Input: none; the values are fixed in the code.
Expected Output:
Prices: [74.25, 31.0, 68.0]= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Printing
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.