title: not able to insert data using ZADD(sorted set ) in redis using python
body: <p>I would like to insert data into sorted set in redis using python to do complex queries like on range etc.</p>
  
  <pre><code>import redis
  redisClient = redis.StrictRedis(host='localhost', port=6379,db=0)
  
  redisClient.zadd("players",1,"rishu")
  </code></pre>
  
  <p>but when  i run the the above piece of code ,i get the following error as </p>
  
  <pre><code>AttributeError: 'str' object has no attribute 'items'
  </code></pre>
  
  <p>What am i doing wrong here.used this link for reference 
  <a href="https://pythontic.com/database/redis/sorted%20set%20-%20add%20and%20remove%20elements" rel="noreferrer">https://pythontic.com/database/redis/sorted%20set%20-%20add%20and%20remove%20elements</a></p>