title: How to insert values 1-100 into redis with python script using for loop?
body: <p>I'm trying to insert 100 values into Redis via a Python script, the data type doesn't matter.</p>
  
  <p>I've tried using a list, but how can you increment the values in the list (doesn't accept strings) other than doing it manually. Ex:</p>
  
  <pre><code>r.lpush list 1    
  r.lpush list 2   
  etc.
  </code></pre>
  
  <p>I don't want to have to type out 100 <code>lpush</code>'s. How can this be done in a loop?</p>
  
  <p>I've tried using strings and incrementing the strings, but I would have to keep changing the value. Ex:</p>
  
  <pre><code>set key 1   
  set key2 2  
  set key3 3
  </code></pre>
  
  <p>So how in the world can I get values 1-100 inserted into redis so that I can read them off?</p>