Skip to content

Make errors example into a function #21

Description

@SJaffa

https://github.com/UoMResearchIT/programming_with_python/blob/19edfb758c78c9614ae7a2406dfa581a473f47ac/_episodes/05-defensive_programming.md?plain=1#L29

We could make this into a function so it is easier to add to it rather than copy-pasting, and clearer that the person giving the input value might be a different person.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions