title: How to slice an input and put it in different lines (python)
body: <p>I have an input for different questions so the user should be able to type all the answers within one line and get the output as</p>
  
  <pre><code>Q1 c
  Q2 b
  Q3 d
  </code></pre>
  
  <p>but when I slice my current input I get <code>c b d</code> ( i need them on different lines)</p>
  
  <p>Code:</p>
  
  <pre><code>input_str = "What are your answers for Q1 to Q10? (leave a space between each answer) " 
  
  qns = input(input_str)
  
  print(qns)
  
  questions = qns.split(" ")
  
  Q1 = (questions[0])
  
  Q2 = (questions[1])
  
  Q3 = (questions[2])
  
  Q4 = (questions[3])
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>What are your answers for Q1 to Q10? (leave a space between each answer) a b c d e
  
  a b c d 
  </code></pre>