Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context appropriate exercise on functions #77

Open
brownsarahm opened this issue Jun 15, 2018 · 2 comments
Open

context appropriate exercise on functions #77

brownsarahm opened this issue Jun 15, 2018 · 2 comments
Labels
good first issue Good issue for first-time contributors type:discussion Discussion or feedback about the lesson

Comments

@brownsarahm
Copy link
Contributor

the exercise in the functions episode has learners compute math that's not on topic. It is a good exercise in that it is self contained, requires no unrelated programming knowledge, and the 2 part-nature: it allows them to think about the idea of returning one vs many values in a function.

this is a good place for a social scientist to comment.

@sechilds sechilds added the type:discussion Discussion or feedback about the lesson label Jun 17, 2018
@awhobbs
Copy link

awhobbs commented Jul 4, 2018

We could use an isoelastic utility function for the single-return function and a CES utility function for the multiple-return example, returning a vector of demands for goods (those are choices kind of specific to the particular social science of economics, but I'm not sure what functions other social scientists use).

@brownsarahm
Copy link
Contributor Author

We used the following when we taught this earlier this month, it's still sort of abstract, but doesn't require any specific domain knowledge.

1. Write a function that takes in a first name and surname and returns the user name of the person that is the first letter of the first name and the whole surname",
1. Suppose you also want the user's display name, their full name as one string, write this function as well. Would I (or should I) have two separate functions or could I write a single function to provide both values together?

@annajiat annajiat added the good first issue Good issue for first-time contributors label Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good issue for first-time contributors type:discussion Discussion or feedback about the lesson
Projects
None yet
Development

No branches or pull requests

4 participants