Python · Math, random & Decimal
statistics.mean([1, 2.0, Fraction(1,2)]) mixes int, float and Fraction. Why is that risky?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
Free to start — download the app or use it in your browser.