• @[email protected]
    link
    fedilink
    45 months ago

    You can use types in Python and your tools will generate warnings

    def something(a: int) -> int: return “potato”

    will turn yellow in an IDE more advanced that notepad.

    Most editors will also show a red line where the indentation is wrong.

      • @[email protected]
        link
        fedilink
        35 months ago

        If you’re writing any language in like notepad, you’re going to have a bad time. I accept your point that school administration may be making questionable choices about what software is installed, but that’s not a problem unique to python.

        • that’s not a problem unique to python

          No, but it’s a bigger problem for C# than is is for Python (though this is changing now), so all the U.K.-based schools were teaching Python, rather than the more-appropriate C#. That was my original point - that’s the dumb reason I had to learn Python, school admin’s wanted the lower overhead of the worse language.