I want to creat a new list by operating some elements of a price list, but the new list is empty. What am I doing wrong?
prices = [2, 50, 70, 30, 555]
new_prices =[]
if int in prices > 20 and int in prices <= 50:
new_price.append(int * 0.4)
elif int in prices > 50:
new_price.append(int * 0.6)
elif int in prices == 5:
new_price.append(int * 0)
print(new_prices)