Using Dictionary with list manipulation
<p>How do you use dictionary to find the index in the elements of the list however it should return the index of the same element.</p>

<p>This is an alternative:</p>

<pre><code>text = "I like cheese because cheese is great"
d = {v:k for k,v in enumerate(text.split(), 1)}
print(d)
</code></pre>

python