/.py
Created
May 29, 2024 09:21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
product_prices = [10, 5, 25, 50, 75, 110] | |
valid_prices = [] | |
for price in product_prices: | |
if price >= 10 and price <= 100: | |
valid_prices.append(price) | |
print("Valid prices:", valid_prices) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment