Rich needs to make the % formatting "%d"%x instead of "%s"%x because he showed that x is an integer not a string.
Actually %s formatting is very flexible and forgiving, it outputs str(x) whatever x is. For example: >>> for x in ['string', 10, True, [1,2,3] ]: ... print '%s' %x ... string 10 True [1, 2, 3]
Kent _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
