Putting a variable value into a input's string
<p>Is there anyway to have a variable be in the string of an input?</p>

<pre><code>score = float(input("Test", grade, "-- Enter score: "))
</code></pre>

<p>I keep getting:</p>

<p>TypeError: input expected at most 1 arguments, got 3</p>

<p>You are passing 3 strings, should be only one. You're incorrectly concatenating string. Use <code>format</code> for that</p>

<pre><code>score = float(input("Test {} -- Enter score: ".format(grade)))
</code></pre>

python variables input