swcarpentry / python-novice-gapminder

Plotting and Programming in Python
http://swcarpentry.github.io/python-novice-gapminder/
Other
163 stars 428 forks source link

Suggestion to replace an existing exercise #626

Open phwtsang opened 1 year ago

phwtsang commented 1 year ago

Lesson: Plotting and Programming in Python Episode: Data Types and Type Conversion Existing Problem: If num_subjects is the number of subjects taking part in a study, and num_per_survey is the number that can take part in a single survey, write an expression that calculates the number of surveys needed to reach everyone once. Replacement Problem: If num_students is the number of students going on a field trip, and num_per_bus is the maximum number of students that can fit in a bus, write an expression that calculates the minimum number of buses needed for the field trip.

martinosorb commented 1 year ago

Dear @phwtsang, thank you for the suggestion. Could you clarify why you think changing the setting of this exercise would make it more clear/relatable/beneficial?

phwtsang commented 1 year ago

Thanks for your follow-up message. When I first encountered the exercise in question, I was confused by "...num_per_survey is the number that can take part in a single survey". In the age of Google Forms and Survey Monkey, I have been conditioned to "each surveyee getting his/her own survey". Why would anyone enter information for multiple surveyees in the same survey? I wonder if the exercise originated from the days when surveyors would record information by hand on paper. The context feels a little contrived to me.

martinosorb commented 1 year ago

I see what you mean, the meaning of 'survey' here is not entirely clear. I am not opposed to changing it, and to making it a little more concrete. Would you have time to make a pull request?