Unable to return or print anything to the console window


#1



https://www.codecademy.com/courses/python-intermediate-en-rCQKw/0/4?curriculum_id=4f89dab3d788890003000096


I am trying to figure out how we are supposed to work through errors in our code to figure out what is going on with our code when trying to sole problems when the Codecademy (for at least this problem) does not print or return ANYTHING to the console window? How are we supposed to troubleshoot if we cant even see what is going on?


I expect 'Good job' to print to the console window. Instead I get 'None'


def digit_sum(n):
    print 'Good job'


#2

May we assume that you are calling the function?

digit_sum(1)    # Good job

#3

Aye. Turned out to be something on my end (comp)

Thank you though.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.