Adding 2 lists to a dictonary in a loop in Python
<p>I've been trying for a while to add 2 lists into my dictonary which i've created. The problem is though, that i want to run them into a loop so the first dictonary gets run 10 times and the second only one time.
Let me show you my code</p>

<pre><code>list1 = [1,2,3,4,5,6,7,8,9,10]
list2 = ["Heart", "Spade", "Clubs", "Diamond"]

i = 0
k = 0
while i &lt; len(list2):
    while k &lt; len(list1):
        dictonary = dict(zip(list1, list2))
        k = k+1
    i = i+1
print(dictonary)
</code></pre>

<p>The output im getting is:</p>

<pre><code>{1: 'Heart', 2: 'Spade', 3: 'Clubs', 4: 'Diamond'}
</code></pre>

<p>I cant understand why it wont print out</p>

<pre><code>{1: 'Heart', 2: 'Heart', 3: 'Heart' etc...}
</code></pre>

<p>I know my loop works fine, but i might missunderstand the concept of adding two lists together to a dictonary?
Would appreciate some help here.
Thanks!</p>