string input from Python list
<p>i Want to make a very simple script that will do the following:</p>

<p>1- I have a List Named tries = ["First", "Second", "Last"]</p>

<p>2- I want the user will make an input string for each try</p>

<p>so I made script as below:</p>

<pre><code>print("You got 3 Guessing tries to guess What is My Name")

tries = ["First", "Second", "Last"]

for x in tries:
    Names = str(input(x,"Guess ?"))

    print(Names)
</code></pre>

<p>but it seems that Python doesn't accept this line: Names = str(input(x,"Guess ?"))</p>

<p>so any suggestions how to make the Questions to be appearing to the user as:  "First Guess?", then "Second Guess?", then "last guess?" </p>

<p><strong>first</strong> off the str() is not needed because input always outputs a string</p>

<p><strong>secondly</strong> this is python 3.x not 2.7 (in the tagging)</p>

<p><strong>third</strong> the issue you are having is you are trying to give input 2 parameters, this works with print and that throws new python coders off but other functions won't allow it. you can fix it by simply adding the two strings together like this <code>input(x+"Guess ?")</code></p>

python python-2.7 python-3.x