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

Add function and class (OOP) examples to Python lesson #108

Merged
merged 7 commits into from
Apr 26, 2023

Conversation

mdpiper
Copy link
Member

@mdpiper mdpiper commented Apr 25, 2023

This PR adds two modules that demonstrate, using the diffusion theme of the Python lessons, how to write and use a function and a class in Python.

This PR is inspired, to some degree, by #77. To demonstrate the edit-run cycle in Python, I imagine writing these modules interactively from scratch with a class (of students, not OOP), using a text editor, the shell, and a Python interpreter.

Further, the modules could be included in a GitHub repository, unit tests could be written for them, and CI set up to run the tests. This could form the basis of a solution to #107.

@mdpiper
Copy link
Member Author

mdpiper commented Apr 26, 2023

Unrelated to the theme of this PR, I also made some modifications to the lesson list in the README.

@mdpiper mdpiper merged commit 1ba1e4c into main Apr 26, 2023
@mdpiper mdpiper deleted the mdpiper/so-much-diffusion branch April 26, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant