python remove negative numbers code example Example: remove negative numbers from list python my_positive_list = [number for number in my_list if number >= 0]