SQL answers "what does the data say" — Python is what you reach for when the question doesn't fit a query. This bonus lab runs real Python in your browser (no install): two tiny exercises with the same order amounts you queried earlier.
Lab: Python warm-up
Starting Python…PythonAbout 5 min
A list of order amounts, prices, is preloaded. Compute the total and print it.
Create a variable
totalholding the sum ofprices.Print it with
print(total).
# The list `prices` is already defined for you. print(len(prices))
Hint 1
`sum(prices)` adds up a whole list.