Talk:Think Python/Answers

Using commands not yet learned
I noticed that some of the solutions are using commands not yet learned, such as the exercises at the end of chapter 2, the solution to the last equation uses int, which hasn't yet been introduced. Although the solution looks nice, it should be written in a way that can be understood to someone who hasn't yet learned all possible commands. 152.179.0.18 (talk) 19:24, 29 June 2010 (UTC)

Solution to Exercise 2.3
 >>> r = 5.0 # Radius needs to be a float  The line in the solution stating that radius _needs_ to be a float is incorrect. The same value is returned either way. Is it's just good practice to do it this way? 99.102.51.17 (talk) 06:31, 31 July 2010 (UTC)

Python 3.x support
Python 3.1.1 does not support the examples in exercise 2.1. Every print command with a number prefixed with a zero throws a "Syntax Error: Invalid token" error. It does however support entering octal numbers by prefixing them with a "0o" e.g. 0o02132.