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).
Defined for youSetup that runs before your code
prices = [120.0, 80.5, 250.0, 310.75]
# The list `prices` is already defined for you. print(len(prices))
Hint 1
sum(prices) adds up a whole list.