Hi - I don’t know what’s going on on your machine. But it may be that you have two versions of Python available (3.7 and 3.11), either one may be fine for the book you’re studying. Trying reading the Anaconda documentation about how to switch between different Python versions:
conda list env # will show list of all your envs
conda activate base # activates one of the envs by name