from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) class Constants(BaseConstants): name_in_url = 'survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): q1 = models.StringField( choices=[['а) 240 долларов с вероятностью 1', 'а) 240 долларов с вероятностью 1'], ['б) 1000 долларов с вероятностью 0.25 и 0 с вероятностью 0.75', 'б) 1000 долларов с вероятностью 0.25 и 0 с вероятностью 0.75']], label='Какую из лотерей Вы выберете?', widget=widgets.RadioSelect, ) q2 = models.StringField( choices=[['a) Lottery A: win 1000 dollars more with probability 1/2; win 0 dollars more', 'a) Lottery A: win 1000 dollars more with probability 1/2; win 0 dollars more'], ['b) Lottery B: win 500 dollars more for sure (with probability 1)', 'b) Lottery B: win 500 dollars more for sure (with probability 1)']], label='I give you $1000 for participation in experiment; they are yours. Now you have to choose between two lotteries', widget=widgets.RadioSelect, ) q3 = models.StringField( choices=[['a) -750 долларов с вероятностью 1', 'a) -750 долларов с вероятностью 1'], ['б) минус 1000 долларов с вероятностью 0.75 и 0 с вероятностью 0.25', 'б) минус 1000 долларов с вероятностью 0.75 и 0 с вероятностью 0.25']], label='Какую из лотерей Вы выберете?', widget=widgets.RadioSelect, ) q4 = models.StringField( choices=[['a) Lottery A: win 2000 dollars with probability 1/2; win 1000 dollars', 'a) Lottery A: win 2000 dollars with probability 1/2; win 1000 dollars'], ['b) Lottery B: win 1500 dollars more for sure', 'b) Lottery B: win 1500 dollars more for sure']], label='Choose between two lotteries?', widget=widgets.RadioSelect, ) q5 = models.StringField( choices=[['a) Lottery A: lose 1000 dollars with probability 1/2; lose 0 dollars with prob 1/2','a) Lottery A: lose 1000 dollars with probability 1/2; lose 0 dollars with prob 1/2'], ['b) Lottery B: lose 500 dollars more for sure','b) Lottery B: lose 500 dollars more for sure']], label='You get 2000 dollars. Choose between two lotteries', widget=widgets.RadioSelect, )