For me, it's hard to recommend a specific book to learn to code, because I started reading regularly later in my career.
I would still recommend spending more time practicing at the beginning.
And I would still recommend more general-purpose books for the beginners.
"Code: The Hidden Language of Computer Hardware and Software" is an old book, but it'll help to know the basics (though I still haven't read it :)
"Grokking Algorithms" for algorithms
some of the books were listed in the comments, maybe you'll find a suitable one for you
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What are the best books for beginning coders to start with?
For me, it's hard to recommend a specific book to learn to code, because I started reading regularly later in my career.
I would still recommend spending more time practicing at the beginning.
And I would still recommend more general-purpose books for the beginners.