Commit c69bce5
committed
remove unnecessary type conversion
This removes the ```float()``` around a (potential) integer division.
Since Python3 the result of an integer division is a floating
point number. This also removes the time and attention capacity
necessary by learners for an explaination of what this does and
why it is there. I do not mean to say that type conversions cannot
be important, but the focus of this excercise is elsewhere.
Note: it was good to have this in place for Python2, but Python2
is dead today and has been for a while. We also require an installation
of Python3 in the setup.1 parent 6f44f71 commit c69bce5
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments