The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Y.G. Bae (36) [Avatar] Offline
#1
Quick Check 21-3 3rd code (pg. 187):
def func_3(head, shoulders, knees):
    print("and toes")

Though the answer states
· no (indentation error)

I couldn't find an indentation error. May the intended code have been as below?
def func_3(head, shoulders, knees):
print("and toes")


Quick Check 21-5 2nd & 3rd codes, pg. 188
· 10 (return type is an integer)
· "and toes" (return type is a string)

I feel that, to follow the answers, the codes should end with returns instead of prints:
· def func_2():
      return(5+5)
· def func_3(head, shoulders, knees):
      return("and toes")


Ana Bell (33) [Avatar] Offline
#2
Correct on all these three points. I may change one of the last two part to still print, in which case the return will be the value None of type NoneType