Skip to content

Commit

Permalink
Update task 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentril committed Oct 12, 2022
1 parent ad4853d commit ab81a12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/tasks/03_fraction_class.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ Your task is to implement own class for representation of fraction number. The F

For your solution use this [template](03_fraction_class.py). All needed instructions are included in the template. You are supposed to fill in implementation for all methods there.

There is included function `gcd` (gratest common divisor) from math package. It might be useful in normalization of fraction. You can call it as any other function `gcd(x, y)` where `x` and `y` are input integers. It is not allowed to use any other import. Assignment with additional imports will fail automatically.
There is included function `gcd` (gratest common divisor) from math package. It might be useful in normalization of fraction. You can call it as any other function `gcd(x, y)` where `x` and `y` are input integers. It is not allowed to use any other import. Assignment with additional imports will fail automatically.

Avoid usage of floats and division in entire solution except the method `normalize()`. It is allowed and necessary to use it `normalize()`, but nowehere else!

You can expect that there wont be inputs or expected results with 0 or negative numbers in both numerator and denumerator.

0 comments on commit ab81a12

Please sign in to comment.