from redis import StrictRedis

class QuizDB(StrictRedis):
    def get_all_quizzes(self):
        return self.smembers('quiz')

from redis import StrictRedis

class QuizDB(StrictRedis):
    def get_all_quizzes(self):
        return self.smembers('quiz')

    def get_question(self, quizid, questionid):
        return self.hget("{0}:question".format(quizid), questionid)


Add function to get a question
Add function to get a question

  from redis import StrictRedis
  
  class QuizDB(StrictRedis):
      def get_all_quizzes(self):
          return self.smembers('quiz')
  
+     def get_question(self, quizid, questionid):
+         return self.hget("{0}:question".format(quizid), questionid)
+ 
+ 
Add function to get a question
## Code Before:
from redis import StrictRedis

class QuizDB(StrictRedis):
    def get_all_quizzes(self):
        return self.smembers('quiz')

## Instruction:
Add function to get a question
## Code After:
from redis import StrictRedis

class QuizDB(StrictRedis):
    def get_all_quizzes(self):
        return self.smembers('quiz')

    def get_question(self, quizid, questionid):
        return self.hget("{0}:question".format(quizid), questionid)

