How do you make a list inclusive?
<p>I have homework that asks me to make a list from 1 to 52 inclusive. (for a deck of cards) I was just wondering how do you make a list inclusive?</p>

<p>I know how to make a list, just am not sure how to make it inclusive. I searched on here for awhile and couldn't really find anything helpful.</p>

<p>This will create list with <code>[0,51]</code> values</p>

<pre><code>list_of_cards = [i for i in range(52)] 
</code></pre>

<p>This will create list with <code>[1,52]</code> values (This is what you want to use):</p>

<pre><code>list_of_cards = [i for i in range(1,53)]
</code></pre>

python list python-3.x