The one-liner Python writes when it's showing off — step 8 of 9
Write a list comprehension that takes the list prices = [12, 50, 8, 99, 30]
and produces a new list containing only the prices over 15. Print the
result.
Expected output:
[50, 99, 30]
⌘↵ runs the editor.read, then continue.
Write a list comprehension that takes the list prices = [12, 50, 8, 99, 30]
and produces a new list containing only the prices over 15. Print the
result.
Expected output:
[50, 99, 30]
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.