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?

  • Adda
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    4 years ago

    It may be that Geany calls for python and that defaults to python2 instead of python3 command, but I would be surprised if your OS still defaulted to Python 2. Glad you figured it out. Have fun learning Python :)