title: slice list with if else condition using list comprehension
body: <p>I want the list to has only number that is not 1 [3,4,5] and put the 1 into another list. below is the code i write</p>
  <pre><code>a_list=[1,1,1,1,3,4,5]
  one_list=[]
  a_list[:] = [a if a != 1 else one_list.append(a) for a in a_list]
  print(a_list)
  print(one_list)
  </code></pre>
  <p>here is the output for a_list -
  [None, None, None, None, 3, 4, 5]</p>
  <p>my desired output for a_list - [3, 4, 5]</p>