Susan Harkins (364) [Avatar] Offline
Please post errors found in the published version of Get Programming here. If necessary, we'll publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
Manning Publications
589288 (1) [Avatar] Offline
In the answer to Q16.1 it is suggested that you cannot code multiple prints of 'Hello' without a for loop.
However, if you use a multiplication of strings syntax, you can:
if num is the number of times given through input, your code print(num * 'Hello\n') will do the job without a loop.

(In the answer to Q17.3 the last two lines of code to print the last name in a given row of names, can be simplified to:
print('Hi ' + name) because the variable name has stored the last name already. No need to use names.rfind(" ").)