There are some terrific books that address Raspberry Pi robotics specifically and lots of other books that deal more with learning the Python programming language.
Robotics programming
Learn Robotics with Raspberry Pi
By veteran Pi community member Matt Timmons-Brown, this books takes you through robotics from first principles and finishes up in computer vision. It’s a No Starch Press book and is in full colour. Find it on Amazon UK here.
Mike wrote a full review of the book over on his blog which you can read here.
Learn Robotics Programming
Danny Staple has written an immense volume here which is more in-depth than Matt’s book and slightly more “grown-up” in it’s style. Find it on Amazon UK here.
Robotics at Home with the Raspberry Pi Pico
Danny Staple has also written a great book that takes you through robotics projects using the Pico.
General Python books
Learning Python with Raspberry Pi
Alex Bradbury and Ben Everard’s book is slightly older (published 2014) than the two above but still acts as a terrific Python primer. A full review can be found here. Find it on Amazon UK here.
Mission Python
Sean McManus has written several Raspberry Pi books but this is the most playful. It’s more to do with coding games, but there’s a lot to learn here to do with control loops and structure. Find it on Amazon UK here.
Getting started with MicroPython on the Raspberry Pi Pico
This is the official guide from Raspberry Pi. Very comprehensive in a general way. You can find the newest version on Amazon.
MicroPython on the Raspberry Pi Pico W
Well-respected programmer Miguel Grinberg has written a book using the Pico W in which he takes you through using circuits. Find it on Amazon.