It is possible to interact with DOM from pyscript - see this answer.
However, all documentation, tutorials, books and online courses are for vanilla JavaScript. Pyscript is still a niche. Nobody is going to help you. If you do not have strong background in web development, it is likely to be easier for you to learn JavaScript in the first place and follow the common guides.
Answer from Mikko Ohtamaa on Stack OverflowYou know the thing we all know. That javascript is the only usable programming language for the client side of the web, ans I have been wondering since I heard of pyscript, that this might actually be a revolution for that.
My first thoughts is that pyscript is shit and unusable, BUT, if they manage to make it work, then this movement of running other languages apart from javascript will explode.
What do you think about the near future of the client side of the web?
Pyscript vs JS
Will pyscript replace JavaScript?
Videos
Is possible that JS become obsolete very soon? What are the functionalities that pyscript cannot cover?
Will pyscript replace JavaScript in the long run?