title: Making python interpret spaces as newline characters
body: <p>I am not sure about input format that user will enter. There are two possibities:</p>
  
  <p>code:</p>
  
  <pre><code>n=int(input("enter the no of workers \n"))
  print("enter the names of workers")
  NameList=[]
  for i in range(n):
      NameList.append(input())
  print(NameList)
  </code></pre>
  
  <p>possibility 1:</p>
  
  <p>enter the no of workers </p>
  
  <p>4</p>
  
  <p>enter the names of workers</p>
  
  <p>name1</p>
  
  <p>name2</p>
  
  <p>name3</p>
  
  <p>name4</p>
  
  <p>['name1', 'name2', 'name3', 'name4']</p>
  
  <p>working great...!!</p>
  
  <p>possibility 2:</p>
  
  <p>input will be : </p>
  
  <p>enter the no of workers </p>
  
  <p>4</p>
  
  <p>enter the names of workers</p>
  
  <p>name1 name2 name3 name4</p>
  
  <p>in this case my code will fail. I'll need to write different code( i know how to write that ;) ) to accept this format of input.</p>
  
  <p>So is there anyway that one code will work for both input formats. By treating spaces as Enter. Thanks</p>