In my opinion, "Beginning Python: From Novice to Professional" is a horrible book. I constantly have to consult "Learning Python(2nd ed.) to clear up all the blunders in Beginning Python. In addition, Learning Python(2nd ed) has exercises and Beginning Python doesn't. So I would recommend "Learning Python(2nd ed)".