diff --git a/Codecademy.md b/Codecademy.md index de19028..06e8a74 100644 --- a/Codecademy.md +++ b/Codecademy.md @@ -314,6 +314,11 @@ print(squares) print(cubes) ``` + +# For example, printing all cuts under $30 +``` +cuts_under_30 = [hairstyles[i] for i in range(0, (len(hairstyles) - 1)) if new_prices[i] < 30] +``` ## Ranges You can get a range of numbers using `range()`