132k views
3 votes
Why is 0.3333333333333333 the output of print(1/6 + 1/6) in python?

User Wild Beard
by
3.6k points

1 Answer

5 votes

Answer:

because 1/6 + 1/6 is 2/6 which is 1/3 and 1/3 is 0.333...

Step-by-step explanation:

User Kevin Greene
by
4.6k points