Skip to content

Commit ab81a12

Browse files
committed
Update task 3
1 parent ad4853d commit ab81a12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/tasks/03_fraction_class.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ Your task is to implement own class for representation of fraction number. The F
2121

2222
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.
2323

24-
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.
24+
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.
25+
26+
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!
27+
28+
You can expect that there wont be inputs or expected results with 0 or negative numbers in both numerator and denumerator.

0 commit comments

Comments
 (0)