For question 2 on Routine Practice 11, I pass the first three test cases where it tests the whole program, but when it tests just the printFancyName function, it fails. The error reads:
Traceback (most recent call last):
File "source.py", line 23, in <module>
printFancyName('Jesse James')
NameError: name 'printFancyName' is not defined
For reference, I have defined that function just inside my main function. I'm not sure why it's giving me an error.