+ 2

Help me solve the code #0004

https://code.sololearn.com/cz3m4k83jOuj/?ref=app it gives output 1. i don't know how..?

17th Mar 2018, 2:09 PM
Pradipsinh Jadeja
Pradipsinh Jadeja - avatar
2 ответов
+ 4
frac = Fraction (1,3) ----> frac = 1/3 frac += Fraction (1,2) ----> frac = frac + 1/2 = 1/3 + 1/2 = 5/6 frac += Fraction (1,6) ----> frac = frac + 1/6 = 5/3 + 1/6 = 6/6 =1
17th Mar 2018, 2:23 PM
abdallah diouane
abdallah diouane - avatar
- 1
this docstring (coment)
18th Mar 2018, 7:45 PM
GoShow. ru
GoShow. ru - avatar