How to add +1 to every nth number in list, python
<p>I generated list of zeros.</p>

<pre><code>num=raw_input

list=[0]*int(num)
</code></pre>

<p>I want every 1st and 2nd number after it in list2 to have +1 added to it.</p>

<p>For every 3rd number in list3, I want to have +1 added to it.</p>

<p>I expect the following output.</p>

<blockquote>
  <p>list2</p>
  
  <p>10101010101010</p>
  
  <p>list3</p>
  
  <p>10010010010010</p>
</blockquote>

<p>I have tried to use the following code:</p>

<pre><code>list=raw_input 
list=[0]*int(num) 
num2=list(num)/2 
num3=int(num)/3 
</code></pre>

<p>But that one breaks if used on any number except 12, for example:</p>

<pre><code>list1 = [1,0]*int(num2) 
list2 = [1,0,0]*int(num3)
</code></pre>

<p>Thank you in advance.</p>
