Best way to get into new library?

Posted by Tornad_pl@reddit | learnprogramming | View on Reddit | 11 comments

(I am talking mostly about python, but idk if that's revelant)

As I slowly move toward practical projects, I often need/want to use some library that I've never used before. I don't know what functions it has, some functions are hidden deep inside documentation or not even there, etc..

For my last project (where I first used sympy) I tried using documentation, and managed to get some code working, but quickly stopped being able to find methods, I need. So I turned to AI, when I asked it for something, it spat some code out, it made me learn about new function. About half the time code was rubbish/not exactly what I wanted, so I reworked it anyway. Once I had access to definition of function, it was easier.

Now... what would be your reccomendations to tackle simmilar problems next time?