def send_range_ans(self, start, end, name: str):
    '\n        Send messages to a range of users id.\n\n        :params start: The start user id.\n        :type start: int\n        :params end: The end user id.\n        :type end: int\n        :params name: The name you want.\n        :type name: str\n        '
    for i in range(start, end):
        data = {'userFullName': name, 'userQuizId': 1}
        data.update(userQuizId=i)
        self.payloadf.update(userQuizId=i)
        try:
            req = requests.request('GET', self.url, params=self.payloadf)
            questions = json.loads(req.text).get('data').get('questions')
            for (j, q) in enumerate(questions):
                qval = q.get('choosenOption')
                data.update({(('questions[' + str(j)) + '][choosenOption]'): qval})
            reqi = requests.post(self.url, params=self.payload, data=data)
            print(('sending post to userQuizId: ' + str(i)))
        except:
            continue
Send messages to a range of users id.

:params start: The start user id.
:type start: int
:params end: The end user id.
:type end: int
:params name: The name you want.
:type name: str
def send_range_ans(self, start, end, name: str):
    '\n        Send messages to a range of users id.\n\n        :params start: The start user id.\n        :type start: int\n        :params end: The end user id.\n        :type end: int\n        :params name: The name you want.\n        :type name: str\n        '
    for i in range(start, end):
        data = {'userFullName': name, 'userQuizId': 1}
        data.update(userQuizId=i)
        self.payloadf.update(userQuizId=i)
        try:
            req = requests.request('GET', self.url, params=self.payloadf)
            questions = json.loads(req.text).get('data').get('questions')
            for (j, q) in enumerate(questions):
                qval = q.get('choosenOption')
                data.update({(('questions[' + str(j)) + '][choosenOption]'): qval})
            reqi = requests.post(self.url, params=self.payload, data=data)
            print(('sending post to userQuizId: ' + str(i)))
        except:
            continue