I’ve started to learn programming Python (also i’m a beginner) and my code’s print result was “0”. Could someone explain why?

I mean, on my calculator hardware it results on something like “0.5555552”, this has anything to do with the Python Interpreter’s code?

  • cheer@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    4 years ago

    As the other guy said, you’re using a really old version of python. For reference, the current version is 3.9.2, but using any python3 would give you the result you need.