I am at a high-beginner/low-intermediate level in Python, and one thing that drives me nuts is how poorly I am able to read the Python official documentation and grok how to use the described code.

What’s the secret? Are there any guides/videos/books that can help my understand how to approach reading it? Or, is it just one of those things that I need to just keep coming back to while coding, and eventually I will get the hang of it?

  • bucho@lemmy.one
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    3
    ·
    1 year ago

    I hate the official python documentation. I often find what I’m looking for much quicker just by asking ChatGPT. You can even ask it to pretend it’s William Shatner while explaining how to use a given function. So that’s fun.

      • UlrikHDA
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        You can just run the code in the debugger to see if it does what you expect.

      • bucho@lemmy.one
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        5
        ·
        1 year ago

        I mean, you can. ChatGPT hasn’t steered me far wrong yet, though, and I’ve used it quite a lot over the past 4 months or so. It’s really quite good.