How to get the value from a list + input
<p>So sorry for the vague title but this is my problem.
(I just started this study)</p>

<h2>For example</h2>

<pre><code>list_1 = [a, b, c, d, e, f]

input_1 = input('question1')
input_2 = input('question2')
</code></pre>

<p>lets say they chose</p>

<pre><code>input_1  = b
input_2 =  f
</code></pre>

<p>I need something that prints the letters between the 2 chosen ones.
So you would get</p>

<pre><code>c
d
e
</code></pre>

<p>What I tried is using the for statement with an if statement but it didnt work out very well. 
I also need something that checks if input2 is further in the list than input1. I tried with</p>

<pre><code>if input_2 &gt; input_1:
     print('yey')
else:
     print('not recognized, automatically f')
     input_2 = list_1[-1]
</code></pre>

<p>sorry for the beginner question =(</p>

<p>This is my version of what you're trying to do. Make sure alphabet is the whole list of letters and you a way of checking if user input is a string from the alphabet.</p>

<pre><code>alphabet = ['a', 'b', 'c', 'd']

input_1 = str(input(""))
input_2 = str(input(""))

Input1Pos = alphabet.index(input_1)

Input2Pos = alphabet.index(input_2)

if (Input2Pos &gt; Input1Pos):
    Input1Pos = Input1Pos + 1
    print alphabet[Input1Pos:Input2Pos]

elif (Input2Pos == Input1Pos):
print "There are no characters between these two inputs"
else:
    print "The second input was before the first input"
</code></pre>

python list for-loop input