Programming and Unix Tips and Tricks
prev = None for x in range(10): if prev is not None: print "not last:", prev prev = x print "last:", prev
No comments:
Post a Comment