title: Python 3 "Too many arguments"?
body: <p>I am writing a python quiz/calculator for school, and I am having a problem with creating random questions for the quiz.</p>
  
  <p>At the moment, I have the code as follows:</p>
  
  <pre><code>while True:
      if i + n == 10:
          answer = input("If I have",i,"blue marbles and",n,"yellow marbles in a bag, what percentage of blue marbles are there? ")   
      else:
          i = random.randint(1, 10)
          n = random.randint(1, 10)
  </code></pre>
  
  <p>However python comes up with an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 3, in &lt;module&gt;
  TypeError: input expected at most 1 arguments, got 5
  </code></pre>
  
  <p>I have tried multiple ways around it, for example:</p>
  
  <pre><code>while True:
      question = "If I have",i,"blue marbles and",n,"yellow marbles in a bag, what percentage of blue marbles are there? "
      answer = input(question)
  </code></pre>
  
  <p>However when printed on the Shell, it prints 'If i have,4 [for example],'blue marbles and',6,'yellow marbles in a bag, what percentage of blue marbles are there?'.</p>
  
  <p>As you can see, it prints quote marks and commas, but includes the variables <code>i</code> and <code>n</code> correctly. I have looked at the <code>.strip()</code> function but all tutorials are too confusing but I think that is what I need!</p>
  
  <p>Can anyone make this line of code work, where it just prints the question as an input statement, whilst including the variables?</p>