from otree.api import Currency as c, currency_range, expect, Bot from . import * class PlayerBot(Bot): def play_round(self): yield Resultados questions = ['q1', 'q2','q3', 'q4', 'q5', 'q6','q7', 'q8', 'q9','q10a','q10b','q10c','q10d', 'q11', 'q12','q13','q14','q15','q16','q17','q18','q19', 'q20', 'q21'] answers = [1 for _ in range(len(questions))] answers = answers + ['petrotsky', random.randint(1, 5)] yield Formulario, dict(zip(questions, answers))