Whoops, made a small typo in the program I sent. Let me rewrite again: ############################################################### def GetFailureMessage(failure_count): """Returns a message given how many times we've seen failure.""" if failure_count <= 1: return "Try again" else: return "Please try again"
## Let's try it out: print(GetFailureMessage(0)) print(GetFailureMessage(1)) print(GetFailureMessage(2)) ############################################################### (The mistake was in my "documentation string" at the beginning of the function. I put too few quotes at the end. Sorry about that!) _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor