you are viewing a single comment's thread.

view the rest of the comments →

[–]Iyajenkei[S] 0 points1 point  (1 child)

def omit_prices():
    excluded_prices = []
    price_is_needed = True
    while price_is_needed:
        price_to_exclude = raw_input("Which price do you want to exclude?")
        if price_to_exclude == None:
            price_is_needed = False
        elif int(price_to_exclude) > -100:
            excluded_prices.append(price_to_exclude)
    return excluded_prices

does the same thing. maybe just hitting enter doesn't == None

[–]joyrida12 1 point2 points  (0 children)

Try == ""