EDIT: I sound like I'm taking sales commission here, but one more recommendation: the Bradfield book is available as a Kindle ebook, but Kindle's code formatting can be pretty tortuous, and incredibly you can't even copy-paste from the Kindle app without some hack or other. But Packt offer the full book as nicely formatted HTML.
I have ten years of professional programming experience, I've just never made a game. All the Godot tutorials I can find have extensive explanations of loops, functions and similar basic concepts.