pop

  1. I

    Проблема с методом pop()

    Выдает IndexError: pop from empty list ,не понимаю почему. def sort_array(source_array): pos = [] odds = [] sort_evens = [] for i in source_array: if i % 2 == 0: pos += '0' else: pos += '1' for n in source_array: if n % 2 == 0...

Форум IT Специалистов