Cuts under $30

This commit is contained in:
Josh Mudge 2019-02-01 21:56:22 -07:00
parent 78520801ea
commit 4e41c46787
1 changed files with 5 additions and 0 deletions

View File

@ -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()`