Practice exercises for using unit tests with Python.
In order to complete these exercises, you should know how to:
- Create variables
- Use print statements (to print strings and variables)
- Use basic mathematic operators (
+
,-
,*
,/
,%
etc.) - Use relational operators (
>
,<
,==
,>=
,<=
,!=
) - Use logical operators (
and
,or
,not
) - Create functions
Write a function that takes a chain as a parameter and returns its size.
Then, write and run 3 unit tests for the function.