Cuts under $30
This commit is contained in:
parent
78520801ea
commit
4e41c46787
|
@ -314,6 +314,11 @@ print(squares)
|
||||||
|
|
||||||
print(cubes)
|
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
|
## Ranges
|
||||||
|
|
||||||
You can get a range of numbers using `range()`
|
You can get a range of numbers using `range()`
|
||||||
|
|
Loading…
Reference in New Issue