Print won't work?!


Hi I'm trying to debug my code by adding print commands after lines of code and nothing shows up on the print console. I can't event get a simple Hello statement. I've noticed this issue on several exercises.

If I'm out of the function I can print "xxx" values but not functions. I can't see what I'm doing within a function. =(

def count (sequence,item):
....test = sequence
....print "hello"



We cannot assign a comma separated list without a wrapper.

sequence = [1, 2, 1, 1]

The sequence and item need to passed to the function...

print count([1, 2, 1, 1], 1)


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