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")
|