Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created May 29, 2024 09:21
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