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>

<pre><code>if input_1 in list_1 and input_2 in list_1:
    print(list_1[list_1.index(input_1)+1:list_1.index(input_2)])
else:
    print('didn't find input_1 or input_2) 
</code></pre>

<p>This?</p>

<p>if you need to auto print the rest of the list from before input_2 or after input_1 you can just add if statements like </p>

<pre><code>if input_1 in list_1 and input_2 in list_1:
    print(list_1[list_1.index(input_1)+1:list_1.index(input_2)])
elif input_1 in list_1 and not input_2 in list_1:
    print(list_1[list_1.index(input_1)+1:])
elif not input_1 in list_1 and input_2 in list_1:
    print(list_1[0:list_1.index(input_2)])
else:
    print('didn't find input_1 or input_2) 
</code></pre>

python list for-loop input