from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'exercise1' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): city_of_birth = models.StringField(label ="In which city were you born?") year_of_birth = models.IntegerField(label="In which year were you born?", min=1900, max=2002) exercise = models.IntegerField(label="how often do you exercise?", choices=[[1, 'Never'], [2, 'Few Times a Month'], [3, '1 Time a Week'], [4, '2-3 Times a Week'], [5, 'Always']]) bike = models.BooleanField(label="do you own a bike?", choices=[[True, 'Yes'], [False, 'No']])