text: Q:
  
  unexpected EOF while parsing
  
  while True:
      no=input()
      if no=='':
          break
      else:
          split_change(no)
  
  This gives EOF error, how to check for EOF while getting input from std input ?
  
  A:
  
  How about this:
    while True:
      try:
        no=raw_input()
        if no=='':
          break
        else:
          split_change(no)
      except EOFError:
        break
  
  EDIT: changed input() to raw_input(), and realized that you have to use try/except otherwise you still get the error.
  EDIT2: Changed 1 to True
  
  