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): age = models.IntegerField(label='1- What is your age?', min=13, max=125) gender = models.StringField( choices=[['Male', 'Male'], ['Female', 'Female'], ['Other', 'Other']], label='2- What is your gender?', widget=widgets.RadioSelect, ) student = models.StringField( choices=[['Home students', 'Home students'], ['International students', 'International students']], label='3-a) Are you...?', widget=widgets.RadioSelect, ) country = models.StringField( label='3-b) If International students, please can you indicate your country of origin? (If not, please write NA)' ) work = models.StringField( choices=[['No work experiences', 'No work experiences'], ['Less than 1 year', 'Less than 1 year'], ['1 year', '1 year'], ['2 years', '2 years'], ['3 years', '3 years'], ['4 years', '4 years'], ['5 years or more', '5 years or more']], label='Years of work experiences (paid works):...?', widget=widgets.RadioSelect, ) crt_bat = models.IntegerField( label=''' (1) Bat and ball. A bat and a ball cost 1.10 dollar in total. The bat costs a dollar more than the ball. How much does the ball cost? Please, give your answer in cents. (1 dollar = 100 cents)''' ) crt_widget = models.IntegerField( label=''' "(2) Machines. It takes 5 machines 5 minutes to make 5 widgets, how long would it take 100 machines to make 100 widgets?" ''' ) crt_lake = models.IntegerField( label=''' (3) Lily pads. In a lake, there is a patch of lily pads. Every day, the patch doubles in size. If it takes 48 days for the patch to cover the entire lake, how long would it take for the patch to cover half of the lake? ''' )