1 result authored by j hopkins - search across all users.
-
Question in j's workspace
Choose from one of several pre-defined scenarios, and set variables to the corresponding values, defined in lists.
This question has three variables:
city,population, andpercent_like_chocolate. These differ for each city. We've defined a list for each variable, with the corresponding values. A variable calledscenariopicks a random position in the list, so the value ofcity, for example, iscities[scenario].