title: how can i split lists ? should i use Input.split(;)?
body: <p>I want to take input from user in the form of numbers <strong>separated space or semi-colon.</strong>
  When the user enters list something like this 
  <code>Lists: 1 3 4 2 1 2 1 3; 4 4 2 4 3 2 4 4 3 1 3</code>
  I want numbers before semi-colon to be put in one list and numbers after the semi-colon to be put in a different list. So for above input, my two lists should be <code>[1, 3, 4, 2, 1, 2, 1, 3] and [4, 4, 2, 4, 3, 2, 4, 4, 3, 1, 3]</code>.
  Should I try split function? My aim is to return a list with all the elements that occur multiple times in an ascending order.</p>
  
  <pre><code>while True:
  
      original_string = input("Lists: ")
      if not original_string:
              exit()
  
      first_split = original_string.split(';')
      first_list, second_list = [elem.split(' ') for elem in first_split]
  
      print(first_list)
      print(second_list)
  #how can returns the list of all the elements that occur multiple times in both lists and the return list should be in ascending order
  </code></pre>
  
  <p>My output should look like this </p>
  
  <pre><code>Lists: 1 3 4 2 1 2 1 3; 4 4 2 4 3 2 4 4 3 1 3
  
  [2, 3]
  
  Lists : 1 1 2 3 4 5; 2 3 4 5 6
  
  []
  
  Lists : ;
  
  []
  
  Lists:
  </code></pre>